Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. if v.x > v.destX then
  2.                 v.right = true
  3.                 if v.right == true then
  4.                     v.x = v.x - 3
  5.                 else
  6.                     v.x = v.x + 3
  7.                 end
  8.             else
  9.                 v.x = v.x + 3
  10.             end
  11.             if v.y > v.destY then
  12.                 v.up = true
  13.                 if v.up == true then
  14.                     v.y = v.y - 3
  15.                 else
  16.                     v.y = v.y + 3
  17.                 end
  18.             else
  19.                 v.y = v.y + 3
  20.             end
  21.         end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement