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
82
S
30
G
94
Posts: 1,155
Reputation: 63,321

Post » Fri Feb 26, 2016 2:34 pm

ImageImageImage
B
72
S
22
G
290
Posts: 3,884
Reputation: 159,509

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
82
S
30
G
94
Posts: 1,155
Reputation: 63,321


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests