I have a scene contains many layer(the layer contains many sprite), how can I pause the schedule and actions , but then I can resume them.
Share
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.
Use functions:
If you want all the layer’s children to pause, you need a loop to do do this.
If you just want a special child to pause;Just use function
getChildByTagto get the child and pause the sprite’s action.Hope it will be helpful 🙂