ikarma khan
ikarma khan

Reputation: 83

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.

Upvotes: 1

Views: 1532

Answers (2)

Dmitry Samuylov
Dmitry Samuylov

Reputation: 1564

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

Upvotes: 4

six8
six8

Reputation: 2990

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.

Upvotes: 1

Related Questions