• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GameMaker Walking Problem

A

Aegean

Guest
Hello guys, I have been working on my rpg game project but I have struggled with walking animation. While I am pressing the "vk_right" It goes right but a little bit below the ground. Here are my codes.
Code:
keyLeft = keyboard_check(vk_left) || keyboard_check(ord("A"));
keyRight = keyboard_check(vk_right) || keyboard_check(ord("D"));
keyAttack = keyboard_check_pressed(ord("H")) || keyboard_check_pressed(ord("Z"));

switch(state)
{
    case PLAYERSTATE.FREE: PlayerStateFree(); break;
    case PLAYERSTATE.ATTACK_SLASH: PlayerStateAttackSlash(); break;
    case PLAYERSTATE.ATTACK_COMBO: PlayerStateAttackCombo(); break;
}
I couldn't fix it and I hope you can help me.
 
Top