Hello guys! I have a problem which is driving me nuts....
I need to figure out a way to determine which direction / angle object is heading. I know several ways to achieve this but not the way I need it to work atm.
So the thing is, I DO NOT want to use behaviors on the object (so this counts out using bullet, 8 dir, physics... to determine angle of motion.) Object is moved just with *dt pixels... and this is how i need it to work on this project.
I can get value using: "angle(Sprite.LastX , Sprite.LastY , Sprite.X , Sprite.Y)"
Basically I have created instance variables to store sprite position on previous tick and compare that to current position. So this kind of works, BUT when object stops the value updates to 0. I am guessing it only does this for one tick, but it`s enough to render this unusable. (since I use this method for collision testing)
sample capx: https://dl.dropboxusercontent.com/u/137 ... otion.capx
Hope some one can help!