How to make sprite moving forward continuously in cocos2d?
Need your help again.
I am currently working on my first iPhone game. In my game i want my car to move forward continuously. I also want my background which is a road, of course, to give the开发者_高级运维 like it is moving.
Thanking you in anticipation.
You can accomplish this using the Parallax in Cocos2D. Here is a video tutorial on how to do that Parallax Scrolling with Cocos2D.
Here is another great site with many free tutorials on how to accomplish many things with Cocos2D that will most likely be very helpful to you Cocos2D Tutorials
I would also highly recommend the top 3 books in the following list on amazon Cocos2D game programming books
That's not a lot of information to work with. To do the basics of what you are asking for, the car wouldn't actually move it all. It would just stay in the middle of the screen while the background moves. You can just create a scrolling parallax background.
精彩评论