Q
Quirk14
Guest
I'm trying to make a command where if I press E on my keyboard, an attack animation will play. But it does not seem to work? Quite new to programming and GameMaker etc so go easy on me:
if (keyboard_check_pressed(ord("E")))
{
sprite_index = spr_playerattack;
image_speed = 20;
}
if (keyboard_check_pressed(ord("E")))
{
sprite_index = spr_playerattack;
image_speed = 20;
}