Attempt to remove an object that has already been removed

So after figureing out an issue that has been kicking my but this is the error I have left over. Code seems to keep running fine, but I get this error when it comes time to reset the level due to player dieing.

Is there an easy way that I am missing to resolve this, because this function is only getting called in one place, but somehow still seems to get called a couple of times.

Anyways any advice would be awesome [import]uid: 105311 topic_id: 22286 reply_id: 322286[/import]

nevermind figured it out [import]uid: 105311 topic_id: 22286 reply_id: 88805[/import]

Was it a touch calling on press and release, or collision not in ended phase?

Would help for others in the future to know how you solved your problem :slight_smile: [import]uid: 52491 topic_id: 22286 reply_id: 88814[/import]

This issue had to do with a sprite animation listener, it was an explosion animation so it was listening for the end of the animation. Somehow it called that function a couple times when the animation ended so I just had to put an extra check in the function so that code was only ran once. [import]uid: 105311 topic_id: 22286 reply_id: 88972[/import]