How i can do a event of, for example, 10 seconds of duration?
Thanks.
Develop games in your browser. Powerful, performant & highly capable.
variable timer = 0
every tick, add dt to timer
if timer < 10 : execute events