making game in pad and iphone
Respected sir, I need help .
If I wa开发者_运维技巧nt to make the object move only when the key(button) is pressed. what should I do to shift the position of the object on frames where the key is held down:- If I pressed left or right button the object should move on that side .
thanks in advance .
It sounds as though you are quite early in the process of making a game on the platform.
A lot of the basics would be covered in a book on the subject which will take you through the steps one at a time.
A good such book is "Beginning iPhone Games Development" available from Amazon.
Alternatively you could have a look at the code examples Apple provides. The Move Me example is a good starting point as it shows both user interaction and the movement of objects.
Good luck and, above all, enjoy.
Teo
There is a fantastic page with tutorials from Mike and I guess you will find an answer there. http://www.71squared.com/iphone-tutorials/
精彩评论