How to I do continuous actions in time?

Like doing A, after 5 seconds stop doing and do B, after another 4 seconds do C and so on. Something line a Timeline.

Read this:

http://wiki.compilgames.net/doku.php/gdevelop5/all-features/timers#timers

I have. I know how to use timers. I just tough maybe I am not aware of a much straight forward way to do this kind of thing :slight_smile:

Hmm maybe like this

Variable Timeline = 0
Variable Time = 5

If Timer is greater than Variable(Time) seconds

Do this = Add 1 to Variable [TimeLine]

If Variable Timeline = 1

Do your thing and do -1 to Variable Time ( and reset timer )

If Variable Timeline = 2

Do your thing and do -1 to Variable Time ( and reset timer )

Every time you go from A to another, it will subtract time and do your thing

Hope this helps

1 Like