Page 1 of 1

Spotting moving direction

PostPosted: Tue Mar 25, 2014 6:06 pm
by Jabutosama
How to make event that happens when sprite is moving exactly left.

Re: Spotting moving direction

PostPosted: Tue Mar 25, 2014 7:49 pm
by facecrime
assuming it's not your player object, which you could simply ask for it's input (?)
- you could either check your object's '.angle' when the object has some speed (meaning that it's probably moving in that direction, no?)
- or if thats not corresponding in your setup you could store away your object's X and Y to compare your old x and y position to your current one

Re: Spotting moving direction

PostPosted: Wed Mar 26, 2014 2:09 pm
by Jabutosama
Ah i see... it's this hard to make.

Thank you by reply, you made my mind clear. Now i can think other things as well :)