Advertisement
alestane

Untitled

May 19th, 2012
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. local function addCharacter(self, character, tile)
  2.     self:insert(character)
  3.     if tile and tile.Character == nil then
  4.         if character.Tile then character.Tile.Character = nil end
  5.         character.x, character.y = tile.xTile * size, tile.yTile * size
  6.         character.Tile = tile
  7.         tile.Character = character
  8.     end
  9.     return tile and tile.Character
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement