开发者

How to make sprite moving forward continuously in cocos2d?

开发者 https://www.devze.com 2023-04-05 10:19 出处:网络
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开发者_高

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号