Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MoveX = -1
- MoveY = -1
- //Inicias esta mierda asi ya el sprite empieza moviendose un pixel en el eje x e y
- while(lactm)
- {
- // esto asi nomas
- sprite.move(MoveX, MoveY)
- Position = getposition()
- // Con esto corregimos si se pasa y ya le cambiamos la direccion, copypastear hasta tener los 4 lados
- if (Position.y < 0)
- MoveY = 1
- render()
- }
Advertisement
Add Comment
Please, Sign In to add comment