Quick timer question.
hrsmedia
Member Posts: 522
I'm trying to do a timer
something like..
If attribute is true = start timer
If collide with actor stop timer
i'm trying to do use a real attribute and interpolate+1.00, but it counts up too fast.
Can anyone guide me?
something like..
If attribute is true = start timer
If collide with actor stop timer
i'm trying to do use a real attribute and interpolate+1.00, but it counts up too fast.
Can anyone guide me?
Comments
Timer every 1 sec
interpolate game.TestTimer to game.TestTimer+1.00
duration 1
it counts up too fast u say interpolate has a timer?
Create a real called timer
Rule
When game.TimerOn is true
Timer every 1 second
Change attribute game.timer to game.timer+1
In collision actor
When collides with other actor
Change attribute game.TimerOn to true
Otherwise
Change attribute game.TimerOn to false
This will cause timer to count up when the objects are overlapping and stop counting when not overlapping.
Also, using Interpolate to increment an attribute is a bad thing.
When you use interpolate that game.TestTimer+1.00 is just going to keep moving the destination value.
scitunes I will try your method, thanks for help.