How do I move an object that follows an invert position?

Get help using Construct 2

Post » Thu Sep 22, 2016 2:16 am

for example, i move my mouse to the left and the object moved the exactly same distance but to the right?
Image

Image
B
38
S
14
G
7
Posts: 408
Reputation: 8,338

Post » Thu Sep 22, 2016 2:25 am

Set position to -Mouse.X, -Mouse.Y?
B
16
S
2
Posts: 85
Reputation: 1,479

Post » Thu Sep 22, 2016 2:35 am

yaomon17 wrote:Set position to -Mouse.X, -Mouse.Y?


thanks but that would only works if the 0,0 was located in the middle of the layout, i found a way to do it and i will say it here:

i created 2 variables that will save the firts Y and X that i input with my mouse everytime i do a click,
then i just have to set the sprite X and Y to "variablefirtsX - touch.x" for an inverted X and same for Y.
Image

Image
B
38
S
14
G
7
Posts: 408
Reputation: 8,338


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 8 guests