stop sprite from looping

I am using the latest stable build and just cannot make the sprite animations stop looping. First time sprite animation is played, it would play partially and stop and from 2nd time onwards, it would loop and never stop. Please help. [import]uid: 109677 topic_id: 26843 reply_id: 326843[/import]

You mention “2nd time onwards” so you’re playing it more than once - how? Is it possible this function is being called multiple times in a row? [import]uid: 52491 topic_id: 26843 reply_id: 109039[/import]

In one setting it is called by a collision event (here it might be called more than 1 time but not an infinite number of times) in another case I use button press, event phase ended as a trigger, the behavior of the sprite animation (as described) is identical in both cases. [import]uid: 109677 topic_id: 26843 reply_id: 109047[/import]

Are you doing this at the end of your touch handler and also your collision function?

return true  

[import]uid: 84637 topic_id: 26843 reply_id: 109057[/import]