A very strange issue occured after I resize browser aspect!

Get help using Construct 2

Post » Tue Apr 14, 2015 10:34 am

I made an event like this:
if - Object1-Compare to X=236pixel make Object 2 Clickable ( boolean )
When screen is sized to 4:3 somehow Object1 loses it X position, though it has Anchor behavior. Is it somehow related to Parallax? Can an object change it's position even if it is Anchored?
What triggers should I pull/push?
B
8
S
2
Posts: 110
Reputation: 928

Post » Tue Apr 14, 2015 11:01 am

From the manual:
https://www.scirra.com/manual/88/anchor

Objects using the Anchor behavior should also be placed on a layer with its parallax set to 0, 0. Otherwise as the game scrolls the objects may "lag" behind the screen.
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 » Tue Apr 14, 2015 11:20 am

Thank you! I should get into this manual more deeply!
Respect!
B
8
S
2
Posts: 110
Reputation: 928

Post » Tue Apr 14, 2015 11:27 am

To check if the x position of the anchor is still 236 pixels, you could set an object to that position every tick.
It is possible that although it stays in the same position on it's own layer the x-position within the project changes, due to the paralax.
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


Return to How do I....?

Who is online

Users browsing this forum: Elliott, jojomickymack and 23 guests