Action Codes (ACTION_*)

Character animation states are selected by ACTION_* constants defined in include/def.hpp. There are 87 action codes (values 1–87). They control which sprite animation plays and often also drive physics behavior in src/decblupi.cpp.

Movement

ConstantValueDescription
ACTION_STOP1Standing still
ACTION_MARCH2Walking
ACTION_TURN3Turning around
ACTION_JUMP4Beginning to jump
ACTION_AIR5In the air (mid-jump)
ACTION_DOWN6Looking down
ACTION_UP7Looking up
ACTION_VERTIGO8"Whoops" — edge vertigo
ACTION_RECEDE9Backing away from edge
ACTION_ADVANCE10Walking forward away from edge
ACTION_STOPMARCH60Stopped from walking
ACTION_STOPJUMP61Stopped from jumping
ACTION_STOPJUMPh62Stopped from jump (variant)
ACTION_TELEPORTE74Teleporting

Helicopter

ConstantValueDescription
ACTION_STOPHELICO15Hovering (helicopter stopped)
ACTION_MARCHHELICO16Flying (helicopter moving)
ACTION_TURNHELICO17Turning in helicopter
ACTION_HELICOGLU58Glued while in helicopter
ACTION_TURNAIR59Turning in mid-air

Swimming

ConstantValueDescription
ACTION_STOPNAGE18Stopped in deep water
ACTION_MARCHNAGE19Swimming in deep water
ACTION_TURNNAGE20Turning in deep water
ACTION_STOPSURF21Stopped at water surface
ACTION_MARCHSURF22Swimming at surface
ACTION_TURNSURF23Turning at surface
ACTION_DROWN24Drowning

Jeep

ConstantValueDescription
ACTION_STOPJEEP25Jeep stopped
ACTION_MARCHJEEP26Jeep moving
ACTION_TURNJEEP27Jeep turning

Crate Pushing / Pulling

ConstantValueDescription
ACTION_PUSH14Pushing a crate
ACTION_STOPPOP28Stopped while pulling crate
ACTION_POP29Pulling crate
ACTION_OUF347Stop moving crate ("gahh!")

Bar Hanging

ConstantValueDescription
ACTION_STOPSUSPEND31Stopped on bars
ACTION_MARCHSUSPEND32Moving on bars
ACTION_TURNSUSPEND33Turning on bars
ACTION_JUMPSUSPEND34Pulling up from bars

Skateboard

ConstantValueDescription
ACTION_STOPSKATE37Skateboard stopped
ACTION_MARCHSKATE38Skateboarding
ACTION_TURNSKATE39Turning on skateboard
ACTION_JUMPSKATE40Jumping on skateboard
ACTION_AIRSKATE41In air on skateboard
ACTION_TAKESKATE42Picking up skateboard
ACTION_DEPOSESKATE43Dropping skateboard
ACTION_SLOWDOWNSKATE85Slowing down on skateboard

Tank

ConstantValueDescription
ACTION_STOPTANK50Tank stopped
ACTION_MARCHTANK51Tank moving
ACTION_TURNTANK52Tank turning
ACTION_FIRETANK53Tank firing

Hovercraft

ConstantValueDescription
ACTION_STOPOVER67Hovercraft stopped
ACTION_MARCHOVER68Hovercraft moving
ACTION_TURNOVER69Hovercraft turning

Power-Up Actions

ConstantValueDescription
ACTION_SUCETTE49Eating lollipop (power boost)
ACTION_GLU54Glued (trapped by glue ball)
ACTION_DRINK55Drinking
ACTION_CHARGE56Charging up
ACTION_ELECTRO57Electrocuted
ACTION_BALLOON66Stung by wasp (swells up)
ACTION_HIDE35Invisible (cloud power-up)
ACTION_STOPECRASE72Stopped while flattened
ACTION_MARCHECRASE73Moving while flattened/squished

Reactions and Expressions

ConstantValueDescription
ACTION_WIN13Victory animation
ACTION_BYE30"au au" farewell
ACTION_JUMPAIE36Headache ("aie!")
ACTION_OUF1a44Relief expression 1a
ACTION_OUF1b45Relief expression 1b
ACTION_OUF246Relief expression 2
ACTION_OUF448Relief expression 4
ACTION_OUF565Relief expression 5
ACTION_MOCKERY63Mockery animation
ACTION_MOCKERYi64Mockery variant i
ACTION_MOCKERYp83Mockery variant p
ACTION_NON84Can't place personal bomb

Dynamite

ConstantValueDescription
ACTION_TAKEDYNAMITE86Picking up dynamite
ACTION_PUTDYNAMITE87Placing dynamite

Utility / Unused

ConstantValueDescription
ACTION_CLEAR111Clear animation 1
ACTION_SET12Set state
ACTION_CLEAR2ACTION_CLEAR875–81Unused clear animations
ACTION_SWITCH82Switch action
ACTION_RECEDEq70Recede quick
ACTION_ADVANCEq71Advance quick