I
ItsThriller
Guest
My plan is to have my player object change to an animated walking sprite when it recognizes that I'm using W, A, S, or D. I thought I had it set up correctly, but apparently not. I'm new, so feel free to explain it to me like I'm a five year old.
The "spr_player_standing_pistol" sprite is the standard sprite.
The "spr_player_walking_pistol" sprite is the animated walking sprite is the animated one that I'm trying to switch to while walking.
I can explain anything else that doesn't make sense in like five minutes time probably.
Code:
//Play Walking Sprite
if (keyboard_check(ord("D"))) or (keyboard_check(ord("A"))) or (keyboard_check(ord("S"))) or (keyboard_check(ord("W")))
{
layer_sprite_change(spr_player_standing_pistol, spr_player_walking_pistol);
}
The "spr_player_standing_pistol" sprite is the standard sprite.
The "spr_player_walking_pistol" sprite is the animated walking sprite is the animated one that I'm trying to switch to while walking.
I can explain anything else that doesn't make sense in like five minutes time probably.
Code:
//Play Walking Sprite
if (keyboard_check(ord("D"))) or (keyboard_check(ord("A"))) or (keyboard_check(ord("S"))) or (keyboard_check(ord("W")))
{
layer_sprite_change(spr_player_standing_pistol, spr_player_walking_pistol);
}