Hi everyone. i've been trying to make an idle animation that, after 20 seconds of inactivity, switches between two frames of idle images forever until one of the arrow keys is pressed, at which point it ends the script and returns to normal. Of course, i want the script to re-activate again after 20 seconds of inactivity. can anyone help?
Offline
Just to make sure, how many costumes/frames are there in your animation?
With regards,
ErnieParke
Offline
Oh, ok. Well then here's a script that could help you:
when gf clicked reset timer forever if <(timer) > (19.9)>//Wait time reset timer next costume else if <<(key [Up Arrow v] pressed?) or (key [Down Arrow v] pressed?)> or <(key [Left Arrow v] pressed?) or (key [Right Arrow v] pressed?)>> reset timer Normal action scripts... end end
Offline