alestane

Transport

Mar 10th, 2012
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. function character.Teleport(self, size, tile)
  2.     if self.Location then
  3.         self.Location.Character = nil
  4.     end
  5.     if tile then
  6.         self.x, self.y = tile.xTile * size, tile.yTile * size + 20
  7.         self.Location = tile
  8.         tile.Character = self
  9.     end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment