Increasing velocity at set times

ToecutterToecutter Member Posts: 19
edited July 2012 in Working with GS (Mac)
My game has a conveyor belt which I would like to increase in speed at certain points in time.
I did manage to make this happen by creating a rule as follows:

Rule
Attribute: game.gametime < 90
Change Velocity
Speed (XXX)

So this rule makes the item on the conveyor belt increase in speed when the time is less 90.

Now I would like the speed to change again at 60 seconds and then at 30 seconds, but if I apply the same rule with the value changed they overlap one another and the speed won't increase. Is there a way to say I want the speed at amount x between 90 to 60 seconds and then amount y between 59 to 30? (Can't find an expression that has 2 values other than random)
Thanks

Answers

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    have you tried = 90 = 60 = 30 etc… instead of using the less than conditions
  • ToecutterToecutter Member Posts: 19
    That only moves the object that appears at 90, 60 or 30 seconds at the desired speed. All random appearing items inbetween those times move at the original speed :(
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Im not following what you want them. Maybe you can give a little better idea of what your trying to do Otherwise someone else is gonna have to chime in.

    Cheers
  • ToecutterToecutter Member Posts: 19
    Sorry not the best at explaining myself.

    By using this method:

    Rule
    Attribute: game.gametime < 90
    Change Velocity
    Speed (XXX)

    Any actor on the conveyor belt will move at an increase speed when the game time is less than 90 seconds.

    By using this method:

    Rule
    Attribute: game.gametime = 90
    Change Velocity
    Speed (XXX)

    An actor spawned at 90 seconds will move at an increased speed but any actor spawned after will move at the speed the original was travelling before 90 seconds (It just goes back to the default setting).

    So
    if I had 2 rules like below: (the time is counting down)

    Rule: Change Speed at 90 seconds
    Attribute: game.gametime < 90
    Change Velocity
    Speed (100)

    then

    Rule: Change speed at 60 Seconds
    Attribute: game.gametime < 60
    Change Velocity
    Speed (150)

    The first rule over rides the second so at 60 seconds the speed won't increase because its still less than 90 seconds.

    Not sure how to get round it
Sign In or Register to comment.