开发者

Buttons that move on screen

I want to have multiple buttons on the screen that continuously move. When they touch the sides, they should bounce back. How do i do this? Any helpful links? Ideas?开发者_Python百科 Thanks!


you go through the apple animation document.

Introduction to Core Animation Programming Guide

Check the following SO post.

How to move several buttons throughout the screen

Move a button in the screen


Also have a look at cocos2d which i think may make it easier to do something like this if they have to constantly be moving.

cocos2d is a game platform which has physics etc but also i believe has support for buttons so it should not be hard to achieve something like this. Check out the cocos2d website and documentation.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜