fuaZandroX modding reference

Actor

void A_OverlayVertexOffset (int layer, int index, float x, float y, int flags = 0)

A_OverlayVertexOffset

Availability

ZandroX only. Does not exist in Zandronum 3.2. Behaviour follows UZDoom's A_OverlayVertexOffset.

Works in netgames. A player's client runs its own layers and takes each layer's jumps from the server — see Psprite layers.

Usage

Shifts one corner of a layer's frame by its own amount, so the frame can be skewed or stretched out of a rectangle. The shift is in the layer's pixels, scaled with it and turned with it.

Parameters

  • int layer

    The layer. 0 means the layer whose state is currently executing — see OverlayID. Does nothing if the layer does not exist.

  • int index

    The corner: 0 top left, 1 bottom left, 2 top right, 3 bottom right. Any other number does nothing.

  • float x, float y

    The shift across and down.

  • int flags

    • WOF_KEEPX, WOF_KEEPY — leave that axis alone.
    • WOF_ADD — add to the corner's current shift instead of replacing it, and ease it over the tic.
    • WOF_INTERPOLATE — ease the change over the tic.

Examples

A frame leaning right, its top edge pushed over:

    LEAN A 0 A_OverlayVertexOffset(OverlayID(), 0, 12, 0)
    LEAN A 0 A_OverlayVertexOffset(OverlayID(), 2, 12, 0)

See also