Help - Menus slide in from offscreen to an elasticated stop!

JCFordJCFord Member Posts: 785
edited November -1 in Working with GS (Mac)
For my new app I'm trying to have my menu buttons slide in from off screen and once they reach there correct position to move backwards and forwards (like on elastic) to a gradual stop - if that makes sense!

But everything I'm trying is not working, I think I am over complicating it!

Any advice
JCFord

Comments

  • Rob2Rob2 Member Posts: 2,402
    This elasticity demo by the master FMG might help http://gamesalad.com/game/play/38647
  • firemaplegamesfiremaplegames Member Posts: 3,211
    I have some things like that in my game.
    I accomplished it with Interpolate and Timers, brute-force style.

    i.e:

    Interpolate slide right for 2 seconds
    Timer: After 2 seconds
    -----Interpolate slide left 5 pixels for 0.2 seconds
    Timer: After 2.2 seconds
    -----Interpolate slide right 5 pixels for 0.1 seconds

    Stuff like that.
    Works well, but is tedious of course.

    Hopefully they will add in some more easing functions, like elastic and bounce.

    You could also try to monkey around with my elasticity demo, but that is probably overkill.
  • JCFordJCFord Member Posts: 785
    Hi FMG - yes I have been playing around with your elastic demo - and agree it did seem a bit over complicated for what I wanted to achieve.

    Okay, as always thanks for your help
    JCFord
Sign In or Register to comment.