Animation xy checker

Other plugins, for example ranks

Moderator: Plugin Moderators

User avatar
ian`
Townsman
Reactions:
Posts: 70
Joined: Sat Apr 04, 2020 17:36
Location: Indonesien
Plugins: Show
Version: Beta

Platform

Plugin Creator

Animation xy checker

#1

Post 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 64 times
:fire

Return to “Other”