Preview Image
Animation xy checker

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.

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.

"strict 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.

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

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


Author: ian`

Category: Other

Visit Source

Forum plugins usually come with an attached .zip or .plugin file. The plugin attachment usually looks like this:

.plugin file download button

You would click on the filename, and it should get downloaded.