A
AngelofGamin
Guest
How do I stop my crouch animation at the last frame? I tried setting it up like this and it still loops.
Code:
// Get Input
scr_jpgetinput();
// Crouch Animation
sprite_index = sp_jplayercrouch;
image_speed = 0.4
if sprite_index = sp_jplayercrouch && image_index = 6
{
image_speed=0
}
// State Transitions
if keyboard_check_released (vk_down)
{
state = states.normal;
}
// Collisions
scr_jpcollisions();
// flip
scr_flip();