I have a problem with my application cocos2d. I do not know how to close a scene. I get this error: You can’t run an scene if another Scene is running. Use replaceScene or pushScene instead’
Help me please
Bye bye
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume, that you are trying to change current scene with
Use
or
instead.
replaceScenewill remove previous scene,pushSceneallows you to pop pushed scene later to return to your first scene in the state it was before pushing new scene.Anyway, in the future you should post the code where you get errors to allow somewho here to be able to understand your problem better.