Changing Speed of Game for a Set Amount of Time

HolyHippoHolyHippo Member Posts: 12
edited November -1 in Working with GS (Mac)
Right now I have all the moving actors (5 total) randomly spawning and scrolling across the screen. Their speed increases when the score reaches a certain point. Say after 30 points are scored I want to introduce the clock icon which when tapped slows every other actor down for 5 seconds making them all easier to tap. After 5 seconds the game returns to normal speed.

I'm trudging through it but am at a loss.

Any ideas?

Comments

  • SlightlyGrimSlightlyGrim Member Posts: 51
    Basically I would have a separate boolean attribute called Clock or slow. Then all you need to do is on the button "when button is pressed" change "clock to true". Then on all actors a part from the main one, create a rule "when clock is true" have your movement attribute and make that slower than normal. Then maybe have on the button, create a rule "when clock is true" "after 5 second change clock to false. Just make sure on each change of speed you add "when score = (which ever score you want) and clock is false". Cause that will set the character back to the right speed once clock is false.

    If you want the other actors to be able to do the same trick, I would have a separate attribute for each character, say clock 1, clock 2 and then when button or actor is pressed it will set off the clock that relates to each character.

    I hope this makes sense, if you have any trouble with it. I'm happy to try to help
Sign In or Register to comment.