Those are basically road alignment aware frames that can be attached on top of any road, similar to animations that are defined directly by a road.
How it may look like

The frame we want to use as decoration



Code: Select all
{"id":"$anim_roaddeco_sample00_00","type":"animation","frames":[{"bmp":"frames.png","x":0,"w":32,"handle y":8}]},
{"id":"$anim_roaddeco_sample00_01","type":"animation","frames":[{"bmp":"frames.png","x":32,"w":32,"handle y":8}]},
{"id":"$anim_roaddeco_sample00_02","type":"animation","frames":[{"bmp":"frames.png","x":64,"w":32,"handle y":8}]},
{"id":"$anim_roaddeco_sample00_03","type":"animation","frames":[{"bmp":"frames.png","x":96,"w":32,"handle y":8}]}
So now we have 4 animation objects that hold our frames that we want to put on top of roads. The basic road decoration structure looks like

Code: Select all
{
"id":"$roaddeco_sample00",
"type":"road decoration",
"title":"Sample deco",
"text":"I am a road decoration.",
"price":100,
...
}

Code: Select all
"animation":[
{"id":"$anim_roaddeco_sample00_00"},
{"id":"$anim_roaddeco_sample00_02"}
],
"animation fg":[
{"id":"$anim_roaddeco_sample00_01"},
{"id":"$anim_roaddeco_sample00_03"}
]

Code: Select all
"frame animation indices":[
[0,1],[0,1],[1],[1],
[0],[0],[],[],
[0,1],[0,1],[1],[1],
[0],[0],[],[]
],
"frame animation fg indices":[
[0,1],[0],[0,1],[0],
[0,1],[0],[0,1],[0],
[1],[],[1],[],
[1],[],[1],[]
]
Here you can get the whole plugin: Road decoration objects also support the basic fun attributes fun, on click fun and random fun.
Since 476: The attribute "speed" can be used to apply a speed multiplier to the underlaying road. Default value is 1.0