Absolute X of Sprite.

Discussion and feedback on Construct 2

Post » Sun Aug 04, 2013 5:57 pm

Is there any way to fetch the Absolute X of a sprite on the screen?

That is to say the X on the screen, taking into account Parallax and Scale rather than the X on the Layout, which is the same regardless of Parallax/Scale.Xionor2013-08-04 18:02:16
B
10
S
3
Posts: 233
Reputation: 1,537

Post » Sun Aug 04, 2013 6:15 pm

manual

LayerToCanvasX/Y is what you want, I think.
ImageImageImage
B
71
S
21
G
204
Posts: 3,586
Reputation: 115,576

Post » Sun Aug 04, 2013 6:30 pm

Holy sh*t, that's amazing!

Thank you a million blackhornet, you always have great solutions! ^^

I was already going through my math books trying to work out a formula to calculate this manually.
Kudos to @Ashley too for figuring it out!Xionor2013-08-04 18:31:05
B
10
S
3
Posts: 233
Reputation: 1,537


Return to Construct 2 General

Who is online

Users browsing this forum: Liam Twose and 10 guests