Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if v.x > v.destX then
- v.right = true
- if v.right == true then
- v.x = v.x - 3
- else
- v.x = v.x + 3
- end
- else
- v.x = v.x + 3
- end
- if v.y > v.destY then
- v.up = true
- if v.up == true then
- v.y = v.y - 3
- else
- v.y = v.y + 3
- end
- else
- v.y = v.y + 3
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement