How to make sprite moving forward continuously in cocos2d? - iphone

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.

Related

Simple Cocos2d Iphone Game. Just some basic questions

I'm making an app, where the sprite has to run across the screen pressing buttons and jumping and ducking. Kind of like line runner. Anyways, I'm using cocos2d. Is this what i should be using. If it is, how would i make it. Im not asking for all the code, just the basic objectives and what i should do! thanks so much!
Cocos2d is one of the best platform to make game i think what you want to do can be done by cocos2d and you need to know how to move object(sprite) across the scene and how to detect the collation.
there is lots of way to move the sprite across the screen you can also move then by the cocos2d built in methods.
search for move method which will help you.
I would definitely advise you to use Cocos2d for this purpose and also Box2d if you need real physics simulation in your game.
Regarding of writing your game have a look here : It contains very useful cocos2d tutorials and even have a tutorial of how to write a full functioning game (Look for the monkey game)
Note : It seems that the link does not work right now but I am sure it will be fixed soon..

Doodle Jump game over animation

Please excuse the stupid question, but I'm working on a game because I'm crazy like that and I really need some help. When you fall below the screen in doodle jump the game is over and it cuts to end of game animation. This animation gives the feel of the screen scrolling and him falling -- some how they animate him to the top -- from the top to his death. Do anybody know who to simulate this animation? BTW, I'm using Cocos2d for the game engine.
I did find the answer my self by using this tool called File Juicer. Check it out it very good.

cocos2d game sample based on gameloop?

I want to develop 2d game through Cocos2d.but i could not find
any tutorial based on the following.I want one game loop and one draw screen.can I do Multiple sprite animations within one scene..(translating World etc).where can i find tutorial how to use those classes which are coccos2d?
-(void)gameloop
{
calculation();
drawImage();
drawImage1();
}
It is quite simple, you do not have to know opengl essentials to use cocos2d. cocos2d is quite simple yet awesome!. Just download the cocos2d 0.99.5 and it comes with sample tests. You will be able to find almost all of the things you want to do in a game i.e. animations, touches, moving sprites, particle system etc etc
so just go to:
http://www.cocos2d-iphone.org/
How to learn OpenGL by example, say, building a rotating globe?

Problem in using CCCamera

I am going to work on a game project. I am using cocos2d. I want to use cccamera class of cocos2d. Please tell me about any tutorial on cccamera. I want to implement more or less like angry birds, throwing the ball that reaches its destination facing the obstacles in the way.
So when the ball moves ahead the scene accordingly moves back depending on speed of the ball.
How to manage all that. I think i should use cccamera.
Thanx.
CCCamera, per the documentation is used for 3D effects (http://www.cocos2d-iphone.org/api-ref/latest-stable/interface_c_c_camera.html) and recommends the use of CCFollow (http://www.cocos2d-iphone.org/api-ref/latest-stable/interface_c_c_follow.html) for 2D related effects (such as following the birds forward, etc).

iPhone 2D Game programming

I would like to start a project about creating a 2D game for iPhone. I have already created some iPhone apps but none concerning game. The idea is simple : the user must drive a ball into a simple route composed of some obstacles before he gets cached by a wall that always go done. (I don't know if it make sense to you but the game environment will be simple).
I posted here because I have some questions :
What should I use ? Opengl ES or only UIView objects ?
Is there some framework that could help me ?
All ideas, advices, suggestions, links for good tutorials are welcome !
Thanks in advance for your help.
Ps: forgive my english, it's not my first language.
If you are focusing on 2D only, something like Cocos 2D would save you a lot of steps and let to focus on your game development.
It handles scene management, particle effects, sprite animation, physics, etc.
My personal favorite for 2D development is Corona.