Everyone .-.

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

P1t0N4(Álvaro Marne)
Posts: 1
Joined: Mon Apr 27, 2020 17:37
Plugins: Show

Everyone .-.


Post by P1t0N4(Álvaro Marne) »

How i make boat's json? :fire

User avatar
Uncle Koala
Posts: 135
Joined: Sun Apr 05, 2020 14:53
Location: Pitcairn Islands
Plugins: Show
Version: Beta


Plugin Creator

Re: Everyone .-.


Post by Uncle Koala »

Scroll down

Or click here to see the quote
Lobby wrote: The json looks fairly simple. Use ship as type and provide at least 4 frames. For the yacht it may looks like

Code: Select all

      {"bmp":"yacht_green.png","w":17,"h":15,"count":4,"handle x":8,"handle y":12},
      {"bmp":"yacht_blue.png","w":17,"h":15,"count":4,"handle x":8,"handle y":12}
Here we provide 8 frames, 4 for each variant of the yacht. The game will pick a variant randomly when spawning a ship. Move frames using handle x and handle y until it looks good. Setting them correctly is difficult, so do it by trial and error.

If your ship is longer than one tile use

Code: Select all

to indicate this. However, the longer the ship the more likely are graphic issues. That's why we never added the long container ships.

Spawning ships from a building is fairly simple. It looks similar to car spawning before car spawners were added:

Code: Select all

"ship count":4,
"ship radius":16,
"ship radius" is currently ignored. Use it for the future.
Lua is easy! :lua:

Code: Select all

if Car.GoingToCrashIntoEachOther()
   then Car.DontCrash

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”