"Road decoration" in changlog

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

User avatar
JustAnyone
Developer
Reactions:
Posts: 3474
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: "Road decoration" in changlog

#1

Post by JustAnyone »

Like normal decorations, but on roads.

User avatar
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

#2

Post by wetguy »

JustAnyone wrote:
12 May 2018, 20:22
Like normal decorations, but on roads.
I believe he is looking for a more detailed explanation and explaining how to make road decorations.

User avatar
JustAnyone
Developer
Reactions:
Posts: 3474
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: "Road decoration" in changlog

#3

Post by JustAnyone »

Do same like decorations, but use the "road decoration"

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: "Road decoration" in changlog

#4

Post by CommanderABab »

Here is the code for road decorations:

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"
  }
]
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

Code: Select all

frame animation indices
accordingly.

A [] in the frame animation indices statement means that no decoration is drawn for that tile.

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”