Skip to content

ZShapePointMove

Moves the shared depth shape stamped under a structure, in screen pixels.

Specification
Applies to
BuildingType
File
art.ini
Section
[<Image ID>]Image ID: Image= value; ObjectType ID when omitted
Value
point (x,y)
When omitted
0,0

Every structure narrower than six cells is drawn together with one shared depth shape, stamped from a fixed point that the structure’s own footprint then shifts. This pair of pixel offsets is added to that point before the footprint shift, moving where the shared shape is sampled from without moving the structure: the first figure carries the sampling point right inside that shape, the second carries it down. The depth pattern that lands under the structure moves the opposite way.

art.ini
[MYREFN] ; example refinery, drawn from its own Image ID
Foundation=4x3
ZShapePointMove=24,-12

A structure six or more cells wide is drawn with no depth shape at all, so the offset has nothing to move; the 6x4 footprint is the only one that reaches that width. The fogged copy of a structure applies no width test, so a 6x4 structure does take the shared shape, and this offset with it, for as long as it is drawn fogged. The offset is also computed and then discarded for the frames a Gate=yes structure draws while its gate is open or moving.