Page 2 of 2
Re: Road decoration
Posted: Wed Oct 10, 2018 17:21
by Kulche
How can I place specific decos only on straight roads? Could you please mark frame animation indices indexes? Like "1st is for curve" :v
Re: Road decoration
Posted: Wed Oct 10, 2018 17:31
by CommanderABab

- wgreyroadrd.png (3.22 KiB) Viewed 3375 times
Counting from 0, you can see that the straight sections are at 5 and 10.
Re: Road decoration
Posted: Wed Oct 10, 2018 17:32
by Kulche
Thanks!

Re: Road decoration
Posted: Tue Jan 15, 2019 5:25
by Shama
Hi everyone! Just started posting and doing plugin stuff, 2nd post ever! I thought I would save others the trouble I just went through trying to figure this out. (for sidewalks for my upcoming roads plugin
There is an error of sorts in Lobby's posted code, and zip. Obviously the in game decos are fine, but the problem seems to be spread to others plugins. The same problem was even in Rockforts trees deco json, and i'm sure many others.
The image coordinates are a bit off.. doesnt show with his trees, or really much at all unless you are trying to do sidewalks or anything that hugs the road, or are OCD with ya pixels

)
Anyway..
{"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":
92,"w":32,"handle y":8}]}
92 should be
96
...and whalla! Thanks for the great game Lobby and putting the code and what not up for us to use and play with!
before:
and after:
Re: Road decoration
Posted: Tue Feb 05, 2019 19:03
by Lobby
Thank you Shama, I didn't notice that
Edited the first post accordingly.
Re: Road decoration
Posted: Fri Mar 22, 2019 13:34
by PenangLion1016
what does it mean by "offset"?
Re: Road decoration
Posted: Sun Mar 31, 2019 14:56
by Lobby
The
world texture is composed from smaller buildings. I use "offset x" and "offset y" to specify from where to pick the frames from. Since you usually bundle your own graphics with your plugin there's usually no need for you to use them.
Re: Road decoration
Posted: Fri Jun 07, 2019 10:21
by Lobby
It's up to you to specify for which alignment of the road which frames/animations should be drawn. Therefore it's also possible to use exactly two frames

contains new attributes; I added them to the first post.
Re: Road decoration
Posted: Mon Aug 05, 2019 14:26
by 22Alpha
Hello guys, anyone remember the road barrier plugin? Not sure if Lobby or Commander made it. But can it work as a road deco? or it would remain as an on click fun plugin?
Re: Road decoration
Posted: Wed Aug 28, 2019 23:23
by Lobby
It is part of the game, it is a road decoration and it uses on click fun.
Re: Road decoration
Posted: Thu May 14, 2020 15:49
by Lakan Haraya
Hi
How can I create a rotation aware road deco for frame 5 and 10 (straight road) of the road, because rotation 0 (default) and 2 build the same road deco :/ and I don't want it into my plugin
Hmm...
Re: Road decoration
Posted: Thu May 14, 2020 18:09
by CommanderABab
Have you tried making the animation used for those frames "rotation aware"?
Re: Road decoration
Posted: Wed Jul 22, 2020 6:27
by star Lee
Excuse me, why road decoration can't be put on the railway?
Re: Road decoration
Posted: Wed Jul 22, 2020 11:13
by JustAnyone
Re: Road decoration
Posted: Wed Jul 22, 2020 15:49
by star Lee
thank you!

Re: Road decoration
Posted: Mon Jul 27, 2020 5:46
by Lakan Haraya
Would it be possible to support road deco in slopes in the near future?

Re: Road decoration
Posted: Sat Nov 07, 2020 19:27
by DESOLAN
Is there a code for animation that is active when the car steps in the road decoration