M
MaestroMetty
Guest
Hi I need to create a timer in my script so i can show a text for 3 seconds, i tried using this code but it's showing, i think, multiple copies of the same texts for less than a second and then not changing the state, remaining in the same state forever. This is the code:
Anyone can help? Thanks.
Code:
var _tick = 0;
while(_tick < 3*room_speed)
{
_tick++;
draw_text(20,60,"Password salvata");
}
if(_tick > 3*room_speed) systemStates = systemStates.FirstCommand;