Stop Button

ChessPawnChessPawn Member Posts: 127
edited November -1 in Working with GS (Mac)
Hey there fellow "saladers" :P

My question was that in my game, I have a ball that is to roll down a user defined track. But if it gets stuck, or just continuously bounces up and down, I want to have a button that the user can press that sends the ball back to the start position, but keeps all the drawing. Right now, I have that when the user hits the button, it changes Attribute "A" to 3. 0 is not moving, 1 is regular motion, 2 is off the track. Then, under the ball, I have when Attribute "A" equals 3, change attribute self position X to 98 and Y to 582 an change Attribute "A" to 0. It kind of does it, but then the ball doesn't stop moving. Also, I have gravity with an accelerate behavior. Please help! :O

Comments

  • calvin9403calvin9403 Member Posts: 3,186
    ChessPawn said:
    Hey there fellow "saladers" :P

    My question was that in my game, I have a ball that is to roll down a user defined track. But if it gets stuck, or just continuously bounces up and down, I want to have a button that the user can press that sends the ball back to the start position, but keeps all the drawing. Right now, I have that when the user hits the button, it changes Attribute "A" to 3. 0 is not moving, 1 is regular motion, 2 is off the track. Then, under the ball, I have when Attribute "A" equals 3, change attribute self position X to 98 and Y to 582 an change Attribute "A" to 0. It kind of does it, but then the ball doesn't stop moving. Also, I have gravity with an accelerate behavior. Please help! :O

    try to use interpolate

    ________________________________________
    http://www.gamesaladforum.com/
Sign In or Register to comment.