HowdoI get a spritescoordinates based on it's layer?(Solved)

Get help using Construct 2

Post » Fri Feb 26, 2016 2:26 pm

I have a cursor that is on a layer that has parallax(0,0) and I have a character that is on a layer that has a parallax(100,100).

I want the cursor to be in the X & Y of the character but since they have different parallax, they differ on location.

In other words, how can I convert an object's coordinates from a layer to another layer? (which has different parallax)

Thanks to anyone that can help :-).
Last edited by chadorireborn on Fri Feb 26, 2016 2:36 pm, edited 1 time in total.
Image



The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
55
S
17
G
90
Posts: 1,112
Reputation: 59,147

Post » Fri Feb 26, 2016 2:34 pm

ImageImageImage
B
71
S
21
G
221
Posts: 3,649
Reputation: 124,227

Post » Fri Feb 26, 2016 2:39 pm

blackhornet wrote:https://www.scirra.com/manual/126/system-expressions
CanvasToLayer, LayerToCanvas


Yeah I found it XD. Thanks for the fast reply.
Image



The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
55
S
17
G
90
Posts: 1,112
Reputation: 59,147


Return to How do I....?

Who is online

Users browsing this forum: jkmalau and 15 guests