61
Technical forum / How to check if a sprite is running and stop it?
« on: March 08, 2008, 05:28:51 PM »
Hi all
I set a sprite running in an entity like this:
a = "MySprite.sprite";
b = Scene.GetNode("SpritePlace");
b.SetSprite(a);
Which works fine, but I can't figure out how to check if the sprite is running and then stop it. I guess it must be something to do with querying the entity? I've put 'Stop Sprite running' into the forum, but nothing seems to point me to the answer. Can anybody help?
Thanks
Kaz
I set a sprite running in an entity like this:
a = "MySprite.sprite";
b = Scene.GetNode("SpritePlace");
b.SetSprite(a);
Which works fine, but I can't figure out how to check if the sprite is running and then stop it. I guess it must be something to do with querying the entity? I've put 'Stop Sprite running' into the forum, but nothing seems to point me to the answer. Can anybody help?
Thanks
Kaz