I am developing game in Cocos2d. In it background of scene moving constantly with x – axis.
I want to understand how can i do it because i am new in cocos2d.
thanks in advance
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.
Take a look to my code – here are the sources. Find the “moving” technique in
HelloWorldLayer.m. I have taken a 360 panorama picture and put it to move continuously from right to left, in fullscreen.In your YourClass.h file:
In your YourClass.m file:
Play a little with this code and you will get what you need.