Game reset problem

afrosunnblockafrosunnblock Member Posts: 1
edited November -1 in Working with GS (Mac)
I am making a game with a ball that launches into motion when pressed. I made a restart button by making a boolean attribute and making it place everything back to its original spot.
However, when the restart button is pressed, the ball was still in motion.
So I made the ball to have 0 motion when restarted, which worked but the ball wouldn't launch when pressed..

How can I make a restart button that will restart the whole scene and have the ball launch when pressed?

Comments

  • steve86steve86 Member Posts: 806
    Create a rule on the ball that tells the actor to only move when reset = 0 otherwise have motion = 0. Then on your reset button after your changed the attribute to reset = 1 when the actor was pressed put in a timer that says after .1 seconds reset = 0
Sign In or Register to comment.