Guest User

Untitled

a guest
Oct 7th, 2015
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. MoveX = -1
  2. MoveY = -1
  3. //Inicias esta mierda asi ya el sprite empieza moviendose un pixel en el eje x e y
  4.  
  5. while(lactm)
  6. {
  7. // esto asi nomas
  8. sprite.move(MoveX, MoveY)
  9.  
  10. Position = getposition()
  11.  
  12. // Con esto corregimos si se pasa y ya le cambiamos la direccion, copypastear hasta tener los 4 lados
  13. if (Position.y < 0)
  14. MoveY = 1
  15.  
  16. render()
  17. }
Advertisement
Add Comment
Please, Sign In to add comment