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.
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
65
S
21
G
90
Posts: 1,124
Reputation: 59,857

Post » Fri Feb 26, 2016 2:34 pm

ImageImageImage
B
71
S
22
G
241
Posts: 3,734
Reputation: 134,494

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.
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
65
S
21
G
90
Posts: 1,124
Reputation: 59,857


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], Kin and 34 guests