Hey all,
In my game there are a few different modes and when change them I am trying to use removeChild for my sprites. When you press the back button you go back to the select a mode screen. Once you are back in this screen, if you misclick and hit empty space the game crashes without an error. Even if you click on empty space the ccTouchesBegan method is still run and in that method I have things like
[player1 setPlayerRect:player1Sprite];
If the mode doesn't have all the players in it and a line of code like that one comes up for said player, nothing bad happens. But if I already have used removeChild on the sprite the game crashes with no error message. Does anyone know a way to fix the problem I am having?
Thanks
Clinton Walsh