How to make a start and stop button in your game for gravity

Adam189Adam189 Member Posts: 5
edited December 2011 in Working with GS (Mac)
Hello Game Salad

I was wondering if you could help me with making a start and stop button which incorporate gravity. A bit like BubbleBall

Comments

  • calvin9403calvin9403 Member Posts: 3,186
    don't use gravity, just accelerate down the screen, that way you have Breyer control on everything

    Calvin
  • Adam189Adam189 Member Posts: 5
    ok but how do you make the ball stop and go back to the original position when pressed a button
  • micksolomicksolo Member Posts: 264
    Make an instance attribute (inside the actor) called "StartPosX" and "StartPosY".

    Then put a change attribute at the start of the actors rules saying Change Attribute StartPoSX -> Self.Pos.X and also the same as Y

    Then when the Stop button is pressed, change attribute Self.Pos.X to Start.Pos.X (and also do the same for Y)
Sign In or Register to comment.