Hi,
I am a newbie to iPhone development and I am looking for the help in making two things to happen simultaneously. Bullet and the ball to move simultaneously. Any pointers are highly appreciable.
Regards
Mustafa Shaik
symadept@gmail.com
A fast, easy to use, free, and community supported 2D game engine
Hi,
I am a newbie to iPhone development and I am looking for the help in making two things to happen simultaneously. Bullet and the ball to move simultaneously. Any pointers are highly appreciable.
Regards
Mustafa Shaik
symadept@gmail.com
Hi Mustafa,
You can create 2 sprites, one for the bullet and one for the ball. Then create an action for each and run them with the sprites.
// create the bullet sprite
// create the ball sprite
// create an action for the bullet
// create an action fort he ball
// use the bullet sprite to run the bullet action
// use the ball sprite to run the ball action
This is my first post, I hope this helps!
Hi Mustafa.
It sounds like you're quite new to game programming. I found that a good intro the very "basic basics" was actually the Wikipedia page: http://en.wikipedia.org/wiki/Game_programming
What you'll probably want to be doing is to update the position of both the bullet and the ball (and any other objects you like) in your game loop.
Good luck!
// Nicke
[moved to cocos2d discuss]
You must log in to post.