Increasing velocity at set times
Toecutter
Member Posts: 19
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
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
Cheers
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