How to make elastic button effect in GS

mikkelkroijermikkelkroijer Member Posts: 3
edited November -1 in Working with GS (Mac)
I have an idea to make all my buttons possible to drag for maybe 10 pixels, before the snap back to their position
with a bouncy feel. I have seen this effect used in games like Nursery Rhymes. Hope Some will give me a tip how to make this.

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi, two ways I can think of to do this. The first would be based on one of Joe's (FireMapleGames) excellent demos called Elasticity demo, which you'll find for download in the New section of the GS dialog. Just turn off/delete the Costrain Y or X in the dragging rules if you want it only one direction.

    The second way would be to use interpolate and angles for each of the bounces. This way would be more work and nowhere near as elegant as Joe's version though. Hope that helps.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Sign In or Register to comment.