开发者

making game in pad and iphone

开发者 https://www.devze.com 2023-01-14 03:55 出处:网络
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 hel

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/

0

精彩评论

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