Page 1 of 1

Re: Construction cranes

Posted: Fri Oct 27, 2017 20:30
by CommanderABab
former member wrote:
Fri Oct 27, 2017 18:19
...How to make cranes that will spawn on construction sites when a building is being built:

A crane JSON consists of only the ID, type and frames.

Code: Select all

...The png file has 4 frames: 2 for the tower, and 2 for the actual crane structure (heading east and north-east).
As an example here's my custom crane image. The image is always 256x64.
You can create your pictures based on this one, but keep in mind the original one was created by Theo.

Of course, cranes will only appear in easy, middle and hard modes.
Thank you for sharing this! Does that crane replace one of the ingame ones, or does it add to the repertoire of cranes?

Re: Construction cranes

Posted: Wed Nov 01, 2017 3:23
by TheFennekin

Re: Construction cranes

Posted: Thu Nov 30, 2017 22:13
by Lobby
The ingame crane has the id "$crane" and contains all available cranes. If you add one with an own id it will be picked with a chance of 50%. Cranes are almost hardcoded and have therefore no features :space