if that sprite does not contain "8direction" behavior.
perhaps add an instance variable "old X" and "old Y".
then check if old X and old Y is equal to self.X and self.Y, those object is not moving
perhaps add an instance variable "old X" and "old Y". then check if old X and old Y is equal to self.X and self.Y, those object is not moving
It will always return positive answer. Problem is to make that delay -.-
first check if the oldx and oldy are the same as self.x and self.y
if so the object is not moving and what you'd like to happen can be added in events
use an else statement to set oldx to self.x and oldy to self.y
Develop games in your browser. Powerful, performant & highly capable.
^yup