简体   繁体   中英

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? Thanks!

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM