tags:

views:

31

answers:

1

Can anyone please tell me how to reset a multiplexlayer scene in cocos2d I want the position, score , time to be reset to intial value. can anyone please tell me how to do it

+1  A: 

Hey Muniraj,

You can remove and add the scene or layer again.

If you take a look at the examples that comes with Cocos2d distribution, you can see that the scenes or layers are removed and replaced.

But to achieve this you have to keep all the "volatile" variables inside the layer definition, so, when you re add it again, the values will be the starting ones.

Cheers,
VFN

vfn