Everyone .-.

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

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

Everyone .-.

#1

Post by P1t0N4(Álvaro Marne) »

How i make boat's json? :fire

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

Platform

Plugin Creator

Re: Everyone .-.

#2

Post by Uncle Koala »

Scroll down

Show
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

[
  {
    "id":"$shipyacht00",
    "type":"ship",
    "frames":[
      {"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

"length":2,
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

"ships":["$shipyacht00"],
"ship count":4,
"ship radius":16,
"ship radius" is currently ignored. Use it for the future.
:space
Lua is easy! :lua:

Code: Select all

if Car.GoingToCrashIntoEachOther()
   then Car.DontCrash
end

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”