How do I make effects scale the same on PC and mobile

Get help using Construct 2

Post » Fri Jan 22, 2016 10:44 am

Hey All!

That's how it looks like on my Android XPERIA Z3 Compact
Image

And on my Windows 10 Macbook Pro :P
Image

How to make the effect scale properly? So it is the same as PC on mobile

---

Thanks!
Positive, inspiring and jazzy games!



www.crystalgames.space



Enjoy!
B
17
S
8
G
3
Posts: 173
Reputation: 3,453

Post » Fri Jan 22, 2016 6:17 pm

https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,340
Reputation: 4,674

Post » Sat Jan 23, 2016 4:46 pm

Replaced those UI objects with the effect's object and it does not work. Though thanks for this scaling technique, I will keep it in mind! :) You might have misunderstood this problem.

The effect itself is like zooming-in on mobile. When it looks good on PC, when trying out on mobile the effect is zoomed inside. What I am looking for is that it looks exactly the same on mobile too. Like all other non-effect sprites.
This also applies to other effects. Maybe all :)

The effect I am using is here effect-rotated-rays-fx_t149470

ॐ☀
Positive, inspiring and jazzy games!



www.crystalgames.space



Enjoy!
B
17
S
8
G
3
Posts: 173
Reputation: 3,453

Post » Sat Jan 23, 2016 4:52 pm

I guess the problem here is the position x and y of your effect..
Seems like they are based on screen(window)-coordinates, rather than project coordinates..

So to scale the effect you should move those coordinates..
Not sure what you want though..
If it's the middle of the screent, it would be simply windowwidth/2, windowheight/2

If you look at the preview of the effect provided in the thread and scale the window (browser) manually, youll see the same issue..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Jan 24, 2016 6:52 pm

Tried coding the sprite, which has the effects, to - on start of layout or everytick = set X and Y to windowwidth/2, windowheight/2. Did not work :)
Positive, inspiring and jazzy games!



www.crystalgames.space



Enjoy!
B
17
S
8
G
3
Posts: 173
Reputation: 3,453


Return to How do I....?

Who is online

Users browsing this forum: Elliott, Google [Bot], hntr, wiredcleric and 12 guests