The thing is that my game doesn't need my character to move, but i can't make it do the dodge animation or any other without it to be moving
movespeed is 4, and i use dodgeSide to decide wich side is the player dodging (true for left, false for right)
and inside of estados_jugador.DODGE is a function that (should) play the corresponding animation
here the animation is reproduced
here it doesn't
...i dont really know what to do now :T
movespeed is 4, and i use dodgeSide to decide wich side is the player dodging (true for left, false for right)
and inside of estados_jugador.DODGE is a function that (should) play the corresponding animation
here the animation is reproduced
switch (keyboard_key)
{
case vk_left:
x -= movespeed;
dodgeSide = true;
estado = estados_jugador.DODGE;
break;
case vk_right:
x += movespeed;
dodgeSide = false;
estado = estados_jugador.DODGE;
break;
}
here it doesn't
switch (keyboard_key)
{
case vk_left:
dodgeSide = true;
estado = estados_jugador.DODGE;
break;
case vk_right:
dodgeSide = false;
estado = estados_jugador.DODGE;
break;
}
...i dont really know what to do now :T