Road decoration
Moderator: Plugin Moderators
- Kulche
- Inhabitant of a Country
- Reactions:
- Posts: 972
- Joined: Wed Jun 07, 2017 20:28
- Location: 2hot2tell
- Plugins: Show
- Version: Beta
Re: Road decoration
How can I place specific decos only on straight roads? Could you please mark frame animation indices indexes? Like "1st is for curve" :v
I'm not lazy, I'm motivated to do nothing!
...
...
- CommanderABab
- AB
- Reactions:
- Posts: 7933
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
Re: Road decoration
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:

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:
Shaman - Beneficent Monarch of the city-state of Kektaka
Less corrupt than DC, stronger than London, better churches than the Vatican, and more gold than Dubai!!
Less corrupt than DC, stronger than London, better churches than the Vatican, and more gold than Dubai!!
- PenangLion1016
- Townsman
- Reactions:
- Posts: 95
- Joined: Wed Dec 20, 2017 14:41
- Location: Penang, Malaysia
- Plugins: Show
Re: Road decoration
what does it mean by "offset"?
Hey its me Pen (or Tan Choon Wei )
mah youtube: https://www.youtube.com/channel/UCTJQOO ... NAdd1hTgig
the other guy who uses bluestacks (the rarest)
im from Penang btw
mah youtube: https://www.youtube.com/channel/UCTJQOO ... NAdd1hTgig
the other guy who uses bluestacks (the rarest)
im from Penang btw
- Lobby
- Developer
- Reactions:
- Posts: 3384
- Joined: Sun Oct 26, 2008 12:34
- Plugins: Show
- Version: Beta
- Phone model: S7 edge
Re: Road decoration
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.
...
- Lobby
- Developer
- Reactions:
- Posts: 3384
- Joined: Sun Oct 26, 2008 12:34
- Plugins: Show
- Version: Beta
- Phone model: S7 edge
Re: Road decoration
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
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?

Who is online
Users browsing this forum: No registered users and 2 guests