Advertisement
Guest User

Untitled

a guest
Sep 30th, 2014
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                 moving--;
  2.                 if (irDerecha)
  3.                 {
  4.                     Personaje.x += velocidad;
  5.                     if (!moving)
  6.                     {
  7.                         cambiarAnimacion("IdleRight");
  8.                         irDerecha = false;
  9.                     }
  10.                 }
  11.                 else if (irIzquierda)
  12.                 {
  13.                     Personaje.x -= velocidad;
  14.                     if (!moving)
  15.                     {
  16.                         cambiarAnimacion("IdleLeft");
  17.                         irIzquierda = false;
  18.                     }
  19.                 }
  20.                 else if (irArriba)
  21.                 {
  22.                     Personaje.y -= velocidad;
  23.                     if (!moving)
  24.                     {
  25.                         cambiarAnimacion("IdleBack");
  26.                         irArriba = false;
  27.                     }
  28.                 }
  29.                 else
  30.                 {
  31.                     Personaje.y += velocidad;
  32.                     if (!moving)
  33.                     {
  34.                         cambiarAnimacion("IdleFront");
  35.                         irAbajo = false;
  36.                     }
  37.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement