A Link to the Past

Stair Drag

The two ALttP sword smiths at their forgery

Stair drag refers to the short period of slower, stuttery movement Link has when exiting manual stairs/ladders, or when moving in certain directions after finishing a spiral staircase transition. This page goes over what stair drag is, how to cancel it, visual cues for canceling stair drag on manual stairs, a brief look at dashing off stairs, and a brief look at what happens internally to cause stair drag.

The stair drag state activates when Link walks onto the last 7-8px of manual stairs, or when Link tries to move in any direction other than left or right after a spiral staircase transition. This state automatically ends after 15 frames, after which Link regains normal speed.

Note: If Link moves back onto manual stairs during this 15 frame period, the state ends immediately and Link switches to manual stair speed. Stair drag will activate again when he exits the stairs.

Stair drag movement speeds

Stair drag causes Link to move a maximum of 8-9px in the 15 frames it's active (i.e. 0.533-0.6px/frame). This is slightly slower than manual stair speed (0.6875px/frame on average) and much slower than normal walking speed (1.5px/frame).

Canceling stair drag

Stair drag can be canceled early by:

  • Holding straight left ( ) for 1 frame
  • Holding dash (holding A while you have the Pegasus Boots) for 1 frame (OR)
  • Holding straight right ( ) for 2 frames.

After canceling stair drag, Link will regain normal movement speed.

While Link is going through a spiral staircase transition, you can hold straight left or right to cancel stair drag immediately before transitioning to the direction you actually need to move in. Alternatively, you can hold your desired (non-left/non-right) direction and tap A (with boots) when you see Link start to move after the transition completes.

On manual stairs, you can cancel stair drag as soon as it starts. Canceling on the earliest possible pixel saves 9 frames when moving up off of the stairs, or 8 frames when moving down off of the stairs. The section below goes over visual cues for canceling stair drag on manual stairs.

Manual stair drag cancel visual cues

Moving up off manual stairs

Note: The visual cues below use Link's ear while Link is at a standstill. These cues change when Link is moving because of his up-down bobbing animation. Always err on the side of being higher than the cues listed below to guarantee you don't cancel too early.

When moving up off manual stairs, the coordinates you can cancel stair drag on will be of the form xxx1 or xxx9. The images below show the visual cues to look for on the different types of manual stairs.

North closed stairs

(Note: Closed stairs here refer to 1-tile wide manual stairs.)

Stair drag cancel - Closed stairs north 1

The line where Link's ear changes color lines up perfectly with the top of the stair wall.

Stair drag cancel - Closed stairs north 2

The line where Link's right ear changes color lines up perfectly with the line where the left edge of the right wall changes color.

North open stairs

Stair drag cancel - Open stairs north

The line where Link's ear changes color is 1px below the top stair line.

North ladder

Stair drag cancel - Ladder north

The line where Link's ear changes color lines up perfectly with the top of the stair texture.

Moving down off manual stairs

Note: The visual cues below use Link's shadow and are not affected by Link's movement animation.

When moving down off manual stairs, the coordinates you can cancel stair drag on will be of the form xxxF or xxx7. For all types of stairs, the earliest pixel where stair drag can be canceled is when Link's shadow touches the bottom of the stair texture (the bottom row of Link's shadow is 1px above the bottom of the stair texture). The images below show an example for each type of stairs:

Stair drag cancel - Open stairs south

Stair drag cancel - Closed stairs south

Stair drag cancel - Ladder south

Dashing off manual stairs

When a dash is activated on stairs, Link gets a 4px movement on the first frame of movement. Additionally, when dashing off of stairs, Link will automatically exit the stairs at full dash speed 1-2px after the visual cues shown above, skipping most of the stair drag.

However, while still on the stairs, Link's speed drops to 0.625px/frame on average after the first frame of movement. This only loses 1px every 16 frames compared to normal walking on stairs, but it's much slower than Link's speed when stairpumping up stairs (which can approach 1px/frame with decent pumping).

Dash movement on stairs is slower in general, but the first frame of movement gives you a 4px jump immediately. So whenever you need to have dash speed when exiting stairs, you should start your dash 2-3px before the visual cues shown above (2px when moving up, 3px when moving down).

When dashing down, the time lost from starting your dash early is quite low and also pretty random. In practice, the only room in Any% NMG where dashing off of stairs has a significant timesave is when exiting the Desert Palace big chest room. If you start your dash from the top of the stairs in that room, the time lost compared to dashing from 3px above the visual cue is only 0-2 frames. However, for every frame you delay after reaching the 3px point you lose a frame, so it's better to err on the side of dashing early.

Internal workings of stair drag

The game maintains a value in $57 that affects Link's movement speed:

$57 [0x01] - Modifier for Link's movement speed. 0 - normal, 0x01 to 0x0F - slow, 0x10 and up - fast. Negative values actually reverse your direction.

Normally this value is always 0 (avg speed: 1.5px/frame, or 3px/2 frames). When you're on stairs, it gets set to 1 (avg speed: 0.6875px/frame, or 11px/16 frames).

When the game detects that you are no longer on stairs, it starts incrementing this value by 1 every frame, counting up from 2 to 16. This is when stair drag is active. During these 15 frames, Link moves 8-9px, assuming you move continuously while it's counting and don't cancel it early. After 16, the value resets back to 0 and Link's movement speed returns to normal. If at any point you move back onto the stairs, it's immediately set back to 1. Once it starts counting, you can also stand in place to wait for it to hit 0 and you'll regain your normal speed.

For manual staircases, the game detects you as "off of stairs" on the last 7-8px of the stair tiles, and starts incrementing $57 when you reach these ends of the stairs.

For spiral staircases, this value gets set to 1 when you enter a spiral staircase transition and persists through the transition. After the transition completes, the next step Link takes (a step of at least 2px, e.g. holding down for at least 2 frames) causes the game to detect that he is no longer on any stairs. The game then starts to increment $57.

Last updated November 27, 2026 by RequiemOfSpirit