Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- moving--;
- if (irDerecha)
- {
- Personaje.x += velocidad;
- if (!moving)
- {
- cambiarAnimacion("IdleRight");
- irDerecha = false;
- }
- }
- else if (irIzquierda)
- {
- Personaje.x -= velocidad;
- if (!moving)
- {
- cambiarAnimacion("IdleLeft");
- irIzquierda = false;
- }
- }
- else if (irArriba)
- {
- Personaje.y -= velocidad;
- if (!moving)
- {
- cambiarAnimacion("IdleBack");
- irArriba = false;
- }
- }
- else
- {
- Personaje.y += velocidad;
- if (!moving)
- {
- cambiarAnimacion("IdleFront");
- irAbajo = false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement