
Can someone make json?
Moderators: Scenario Moderators, Plugin Moderators
- mdk_813
- Inhabitant of a Country
- Posts: 857
- Joined: 16 Dec 2016, 02:38
- Location: Germany
- Plugins: Showcase Store
-
Platform
Re: Can someone make json?
Sorry, I don't know how to do a json for an image with four frames like yours. But, you could use the json from my palmtrees as a starting point. Note, here I provided six frames:
In case you want your trees to be built when creating a map, you should set "auto build" to true.
Code: Select all
[{
"id":"Palmtrees.mdk_813",
"type":"tree",
"author":"mdk_813",
"frames":[{"bmp":"Palmtree_A_transp_1x1.png"},{"bmp":"Palmtree_B_transp_1x1.png"},{"bmp":"Palmtree_C_transp_1x1.png"},{"bmp":"Palmtree_D_transp_1x1.png"},{"bmp":"Palmtree_group_A_transp_1x1.png"},{"bmp":"Palmtree_group_B_transp_1x1.png"}],
"title":"Palmtrees",
"text":"Palmtrees by mdk_813",
"influence pollution":-1,
"influence noise":-1,
"influence nature":1,
"frames per tree":1,
"auto build":false,
"influence radioactive":-1
}]
- JustAnyone
- Developer
- Posts: 3580
- Joined: 23 Jul 2017, 12:45
- Location: Easter Island
- Plugins: Showcase Store
-
Platform
Re: Can someone make json?
I know, but my keyboard is struggling now.
- JustAnyone
- Developer
- Posts: 3580
- Joined: 23 Jul 2017, 12:45
- Location: Easter Island
- Plugins: Showcase Store
-
Platform
Re: Can someone make json?
Code: Select all
"frames":[
{"bmp":"sample.png","w":16,"h":16,"count":4}
],
- JustAnyone
- Developer
- Posts: 3580
- Joined: 23 Jul 2017, 12:45
- Location: Easter Island
- Plugins: Showcase Store
-
Platform
Re: Can someone make json?
If doesn't fit. keep changing w with h.
- CommanderABab
- AB
- Posts: 11241
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Can someone make json?
w=32, h=18