Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function addCharacter(self, character, tile)
- self:insert(character)
- if tile and tile.Character == nil then
- if character.Tile then character.Tile.Character = nil end
- character.x, character.y = tile.xTile * size, tile.yTile * size
- character.Tile = tile
- tile.Character = character
- end
- return tile and tile.Character
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement