Hello,
Does this method TileMap:shift(x, y) work ?
I know the values are in tiles not in pixels.
When i try self.map:shift(-2, 0) I have :
level.lua:39: attempt to call method 'shift' (a nil value)
stack traceback:
level.lua:39: in function
function Level:init()
self.map = TiledMap.new("maps/map01")
self.map:shift(-2, 0)
end
Comments
you should provide dimensions first:
http://docs.giderosmobile.com/reference/gideros/TileMap/new#TileMap.new
Like:
self.map = TiledMap.new(wholesizex, wholesizey, "maps/map01", tilesizex, tilesizey)