How to reset all the values after completion of the game, before starting it again ?
Posted
by srikanth rongali
on Stack Overflow
See other posts from Stack Overflow
or by srikanth rongali
Published on 2010-04-06T10:40:57Z
Indexed on
2010/04/06
10:43 UTC
Read the original article
Hit count: 284
cocos2d-iphone
|game-development
I have writing a small shooting game in cocos2d. Winning the game is to eliminate all the 10 enemies. After that end screen comes showing 'You Won' and 'Play Again'. If I go for 'Play Again' option the game is starting from where I need. But, the problem is that the game is continuing from previously ended state. I mean it is not starting from enemy 1 again instead it is just showing the end of 10 enemy. I think I have to reset all the values before pushing the scene. But should I reset all the values I have used or there is any other way ?
Thank You.
© Stack Overflow or respective owner