player_Direction= 0 //0 for left and 1 for right
Step Event
if (keyboard_check(ord("A"))) {
Movement Code //whatever you may be using
sprite_index="left walking animation";
player_Direction=0;
} else if (keyboard_check(ord("D"))) {
Movement Code //whatever you may be using
sprite_index="right walking animation";
player_Direction=1;
} else if (keyboard_check(ord("W"))) {
Jump Code //whatever you may be using
If player_Direction=0 {
sprite_index="left jumping animation"
} else if player_Direction=1 {
sprite_index="right jumping animation";
}
} else {
If player_Direction=0 {
sprite_index="left Standing animation"
} else if player_Direction=1 {
sprite_index="right standing animation"
}
}
Sorry if this is either wrong or looks odd as I'm doing it both off memory and on my iPod so formatting might be wrong



Find content
Male
