I am currently moving a sprite using a MoveTo command. The problem is that the sprite *might* collide with a tile along the way. Is there a way to run CallFunc during the Sequence instead of afterwards?
Thanks.
A fast, easy to use, free, and community supported 2D game engine
I am currently moving a sprite using a MoveTo command. The problem is that the sprite *might* collide with a tile along the way. Is there a way to run CallFunc during the Sequence instead of afterwards?
Thanks.
Maybe have a method on your Sprite subclass that gets called every frame. It checks for collisions and if it finds one cancels its current Actions.
You must log in to post.