I am a new plugin creator. I maked a plugin called "Park caretaker house" but I am reciving problems. My Json is working perfectly.but I am having size problems. My png size is 32×16(that's the size of one tile right?) But My building is not fitting in the tile...leaving some water around the unfitted part of the tile.....Can you help me with it?
General:
Width:1
Height:1
Type (category):park
Influnece:park (radius 10)
Needs road: true
Needs(water,electricity):true
Smoke: true
Frames:1
Can any one help me?
help me with the size!
Moderator: Plugin Moderators
- TheShyHello456
- Settler
- Reactions:
- Posts: 7
- Joined: 25 Apr 2018, 08:37
- Plugins: Showcase Store
help me with the size!
- Attachments
-
- A screenshot of the problem
- Screenshot_2018-07-05-11-27-55.jpg (37.98 KiB) Viewed 1573 times
- Mr. French
- Inhabitant of a Megalopolis
- Reactions:
- Posts: 561
- Joined: 23 Jul 2017, 01:56
- Location: Orgelet,France
- Plugins: Showcase Store
- Version: Beta
- Contact:
-
Platform
Re: help me with the size!
1. Did you draw your plug-in with the template?TheShyHello456 wrote: ↑05 Jul 2018, 07:29I am a new plugin creator. I maked a plugin called "Park caretaker house" but I am reciving problems. My Json is working perfectly.but I am having size problems. My png size is 32×16(that's the size of one tile right?) But My building is not fitting in the tile...leaving some water around the unfitted part of the tile.....Can you help me with it?
General:
Width:1
Height:1
Type (category):park
Influnece:park (radius 10)
Needs road: true
Needs(water,electricity):true
Smoke: true
Frames:1
Can any one help me?
2. Try drawing it bigger or add moree grass [using the template]
- CommanderABab
- AB
- Reactions:
- Posts: 11107
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: help me with the size!
There are several things that you can do.
In your image editor, you can make sure that the bottom of the wanted image is at the bottom of the canvas area. If it isn't, move it down, so that it is.
You may, in addition, use in the .json file.
You may also use handle y to have the game move it down five pixels.
This would look something like:
annotated screenshot
You may, in addition, use
Code: Select all
"draw ground":true
You may also use handle y to have the game move it down five pixels.
This would look something like:
Code: Select all
"frames":[{"bmp":"yourimagename.png","handle y":5}],
- TheShyHello456
- Settler
- Reactions:
- Posts: 7
- Joined: 25 Apr 2018, 08:37
- Plugins: Showcase Store
Re: help me with the size!
Thanks for your help.....I will just try your suggestions
- TheShyHello456
- Settler
- Reactions:
- Posts: 7
- Joined: 25 Apr 2018, 08:37
- Plugins: Showcase Store
Re: help me with the size!
Theotheotown wrote: ↑05 Jul 2018, 15:461. Did you draw your plug-in with the template?TheShyHello456 wrote: ↑05 Jul 2018, 07:29I am a new plugin creator. I maked a plugin called "Park caretaker house" but I am reciving problems. My Json is working perfectly.but I am having size problems. My png size is 32×16(that's the size of one tile right?) But My building is not fitting in the tile...leaving some water around the unfitted part of the tile.....Can you help me with it?
General:
Width:1
Height:1
Type (category):park
Influnece:park (radius 10)
Needs road: true
Needs(water,electricity):true
Smoke: true
Frames:1
Can any one help me?
2. Try drawing it bigger or add moree grass [using the template]
Yes I maked it with (sample.png) template of Theotown>plugins>sample