So when a sprites y decreases or increases i can make it do a thing.
Develop games in your browser. Powerful, performant & highly capable.
Add an instance variable prevY
On start of layout : Sprite set prevY to self.y Sprite compare Y<self.prevY : [sprite is going up] Sprite compare Y>self.prevY : [sprite is going down] On every tick : Sprite set prevY to self.y