Mira, eso lo puedes hacer con varialbes, aqu? va:
Evento Create:
[gml]timer_to_animation=0[/gml]
Evento Step:
[gml]if not keyboard_check(tecla) then timer_to_animation+=1
if timer_to_animation>(//intervalo de timepo en que va a ocurrir,, sin los parentesis ni las lineas) then sprite_index=animacion[/gml]
[gml]if keyboard_check(tecla)then timer_to_animation=0[/gml]
Pruebalo, lo mas probable es que te funcione.
Evento Create:
[gml]timer_to_animation=0[/gml]
Evento Step:
[gml]if not keyboard_check(tecla) then timer_to_animation+=1
if timer_to_animation>(//intervalo de timepo en que va a ocurrir,, sin los parentesis ni las lineas) then sprite_index=animacion[/gml]
[gml]if keyboard_check(tecla)then timer_to_animation=0[/gml]
Pruebalo, lo mas probable es que te funcione.