I decided to make a test plugin with a small blinking light made by myself. It is basically a small 1x1 boie with draw ground that builds on water.
After some trial and error I was able to determine that in this case, the coordinates must be "x":14,"y":-9. However, I cannot figure out the system behind it. Why does the game want these coordinates? Because they differ from what I've counted out by using the method provided here: http://www.theotown.com/forum/viewtopic.php?f=41&t=1215
How do I determine the pivot point from where to count pixels? Is it a different point, if there is no ground texture?
The json looks like this (it works as intended):
Code: Select all
[
{
"id":"TestbojeNEU.mdk_813",
"type":"decoration",
"author":"mdk_813",
"width":1,
"height":1,
"frames":[{"bmp":"TestbojeNEU_1x1.png"}],
"animation":[{"id":"MyRedLight_5x5.mdk_813","x":14,"y":-9}],
"price":1,
"monthly price":1,
"draw ground":true,
"water":"0",
"power":"0",
"build time":0,
"needs road":false,
"needs water":true,
"needs land":false,
"title":"TestbojeNEU",
"text":"Will it blink?"
}
]
This is the original plugin png.
This is the complete plugin: