A_Lower

From DoomWiki.org

Revision as of 09:11, 4 March 2022 by XymphBot (talk | contribs) (Automated edit - Add sortkey without A_ prefix)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A_Lower is a code pointer used in the weapon lower animation for all weapons.

A_Lower moves the Y position of the weapon sprite towards the bottom of the screen by a small amount each time it is invoked. If the bottom of the screen is reached, the next weapon is selected and the raise state is invoked to bring it up. A_Lower is usually used in a state that is an infinite loop that repeatedly jumps back to itself; the loop terminates when the weapon has finished lowering.

Uses[edit]

The A_Lower code pointer appears in the following states in Doom's state table:

Example[edit]

The following is an example of how to set the A_Lower code pointer in a Dehacked file:

Pointer 21 (Frame 34)
Codep Frame = 82

Or using BEX syntax:

[CODEPTR]
Frame 1234 = Lower

External links[edit]