increase speed for a time Help
hello everybody
si i want to know how can i increase my actor speed for a time when i touch an other actor
for exemple:
my actor speed motion.vellocity.x= 400
so i want every time that i touch an x actor my speed player up + 20 for 5 secondes
Thanks
si i want to know how can i increase my actor speed for a time when i touch an other actor
for exemple:
my actor speed motion.vellocity.x= 400
so i want every time that i touch an x actor my speed player up + 20 for 5 secondes
Thanks
Comments
In your 'other actor' create a rule that says when touched change the attribute 'speedMeUp' to true
In your moving actor create a rule that says when 'speedMeUp' is true change motion.velocity.x to 420
Include a timer that says (after) 20 seconds change motion.velocity.x to 400
and change 'speedMeUp' back to false
And every time i touch my actor his speed up +20
For exemple if i touch it tow times his speed: 440
Three time
Speed: 460
Thanks
https://www.dropbox.com/sh/9gqiviyqfbjs7xz/Me9jyf_C3_
set a timer "after 20"
then Interpolate Behavior "self.Motion.Linear Velocity.X to 400 set Duration 1 or 0.5"
speed=real=400
attribut speed+ 20 when i touch it
and put a timer after 20 secondes attribut speed-20
The meaning of my rule is that when the speed is increased after 20s are back to "400" no matter how many "20" is added.
so i don't want to recame to 400 speed because my first attribut give me +20 every 5 secondes and i don't want to lose them.
i want to lose +10 after 10 secondes.
Please post exactly what you want -- in complete detail. An then stick to it!