Make an icon go up and down when pressed like a mac icon on the desktop
Hi GS community! I need some help getting an icon to go up and down (when pressed) at least twice or three times and come to a stop, like when you click on a mac app on your desktop i would greatly appreciate your help :-)
Best Answers
-
jckmcgraw Posts: 647
When touch is pressed: interpolate self.pos.y to the top then time it and have it interpolate back down. I would just use a bunch of timers for it to go up and down. -
tatiang Posts: 11,949
You can use Interpolate to achieve this. Here's a demo I made: https://www.dropbox.com/s/bl29xxtp1hmrj07/Icon Bounce.zipNew to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers