Page 1 of 1

Animation xy checker

Posted: 19 Jul 2020, 04:02
by ian`
This is a plugin for check the animation positions without restarting the application. As we know, Json code need to restart for refresh their code, but with :lua:, you can check the animation positions without restarting.

Show
expicture1_70.JPG

With this code, you only have to change the numberX and numberY with integer.

Drawing.setTile(tileX,tileY,numberX,numberY)

and the id of your animation draft or "type":"animation" in json format.

Drawing.drawImage(Draft.getDraft('youranimid'):getFrame(1))

Then attach the lua script to json with realtime lua code.

"strich lua":true,"script":"#LuaWrapper","meta":{"luawrapper":{"script":"xychecker.lua","dev":true}}

After you check the positions of x and y, and you get the right positions, copy the numberX and numberY integers to your animation x and y in json.

"animation":[{"id":"animid","x":integerofnumberX,"y":integerofnumberY}]

When you finished with it and want to publish your plugin, please remove lua script and the codes to attach the script.

xyrealtime.zip
(3.26 KiB) Downloaded 213 times