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 layerThe layer.
0means the layer whose state is currently executing — see OverlayID. Does nothing if the layer does not exist. -
int indexThe corner:
0top left,1bottom left,2top right,3bottom right. Any other number does nothing. -
float x,float yThe 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)