Page 1 of 1

[1.9.37a][android] setTile offset not work

Posted: 06 Nov 2020, 08:52
by chian177
Hi, i use the function but not work, offsetX and offsetY always like zero

frame is showing tile's (0,0)

my code:

Code: Select all    Reset

function script:draw (x, y, level) Drawing.setTile(x, y, 2, 3, 1, 1); Drawing.drawTileFrame(frameId); end
Lua editor
Run
and i use drawTileImage(frameId), but no draw frame picture

doc: https://doc.theotown.com/modules/Drawing.html#setTile

Re: [1.9.37a][android] setTile offset not work

Posted: 06 Nov 2020, 09:55
by chian177
i find answer... XDD

Code: Select all    Reset

function script:draw (x, y, level) Drawing.setTile(x, y, 2, 3, 1, 1); Drawing.drawImage(frameId, 0, 0); end
Lua editor
Run