iphone - How to change scenes in cocos2d while retaining state of the original scene -
In my cocos2d project, I have two views. I am in transition between the use of the sedentary instead of the CCC It is possible to save so that when the view turns into different views, and then changed back to the original, all the objects and variables in the original are the same.
thanks,
nonono
Instead of changing
>, you can use pushScene:
and popScene
. Push sensi:
puts a new view on a stack and displays it when you complete that view, on
[[Share Director] Push Sensei: Newcastle]; // ... [[Director shared director] Popsen];
Note that this leaves your previous scene in memory (as you asked), so it is to replace :
if you Possibly, if you use pushScene:
and popScene
, then it is best to keep your view stack too small.
Comments
Post a Comment