Posted: 30th Dec 2011 6:51
I want to pause a sprite ,which way should I use?
Posted: 30th Dec 2011 7:53
I believe SetSpriteActive() controls both animation and physics while the StopSprite() only effects the animation. So if you want to pause only the animation then use StopSprite(). If you want to stop both animation and physics, then use SetSpriteActive(false).
Posted: 30th Dec 2011 7:55
@Hodgey, I see. Thank you very much!
Posted: 30th Dec 2011 9:35
just to add that i think that setspriteactive also affects other properties of the sprite like collision (e.g. getspritehit) as well as physics...
Posted: 31st Dec 2011 3:36
@mr_d : Thank you!