"Road decoration" in changlog
Moderator: Plugin Moderators
- JustAnyone
- Developer
- Reactions:
- Posts: 3474
- Joined: 23 Jul 2017, 12:45
- Location: Easter Island
- Plugins: Showcase Store
-
Platform
Re: "Road decoration" in changlog
Like normal decorations, but on roads.
- wetguy
- Inhabitant of a Megalopolis
- Reactions:
- Posts: 738
- Joined: 25 Nov 2017, 06:10
- Location: United States of America
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: "Road decoration" in changlog
I believe he is looking for a more detailed explanation and explaining how to make road decorations.
- JustAnyone
- Developer
- Reactions:
- Posts: 3474
- Joined: 23 Jul 2017, 12:45
- Location: Easter Island
- Plugins: Showcase Store
-
Platform
Re: "Road decoration" in changlog
Do same like decorations, but use the "road decoration"
- CommanderABab
- AB
- Reactions:
- Posts: 11086
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: "Road decoration" in changlog
Here is the code for road decorations:
The graphics, if you want to make your own are 1x1 tiles 32 pixel wide by 16 pixel high for each tile. Note that traffic is drawn over these decorations. If you wanted a different decoration for each of the possible 16 different road tile connections, you would have to create an animation for each one, and adjust the accordingly.
A [] in the frame animation indices statement means that no decoration is drawn for that tile.
Code: Select all
[
{
"id":"$cat_test00",
"type":"category",
"frames":[{"steal":"$logo_unknown00"}],
"title":"Testzone"
},
{
"id":"$anim_roaddeco_test00_00",
"type":"animation",
"frames":[{"x":416,"y":880,"w":32,"h":16,"handle y":8}]
},
{
"id":"$anim_roaddeco_test00_01",
"type":"animation",
"frames":[{"x":448,"y":880,"w":32,"h":16,"handle y":8}]
},
{
"id":"$anim_roaddeco_test00_02",
"type":"animation",
"frames":[{"x":480,"y":880,"w":32,"h":16,"handle y":8}]
},
{
"id":"$roaddeco_test00",
"type":"road decoration",
"animation":[
{"id":"$anim_roaddeco_test00_00"},
{"id":"$anim_roaddeco_test00_01"},
{"id":"$anim_roaddeco_test00_02"}
],
"frame animation indices":[
[],
[0],
[1],
[2],
[0],
[0],
[2],
[2],
[1],
[2],
[1],
[2],
[2],
[2],
[2],
[2]
],
"category":"$cat_test00"
}
]
Code: Select all
frame animation indices
A [] in the frame animation indices statement means that no decoration is drawn for that tile.