X-Mode

From A complete guide to Super Metroid speedrunning
Revision as of 17:20, 22 November 2026 by Nn357 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

X-mode (X-Ray mode) is one of the three known glitched modes entered by using the X-Ray Scope, the other two being R-Mode and G-Mode.

Unlike the other X-Ray Scope glitched mode which also require a reserve tank, basic X-Mode only requires the X-Ray Scope. However, this mode can only be used in certain rooms for traversal. Ex. Jesuswalk, used in 14% xAmmo (and an option in other 14% categories, although usually more difficult than a different choice). Additionally Max% GT Code has a route that crosses Bowling Alley by using Spike X-mode.

With Morph and SpeedBooster equipped, Samus can enter Spike X-mode which has many more applications.

E.g. Obtaining a shinecharge in a room without runway. The shinecharge can then be further used for a spikesuit (X-mode spikesuit), a blue suit / super jump (Double X-mode).

If Samus has obtained a flash suit without SpeedBooster, X-mode (via spike or slope) can be used to generate a bluesuit and / or super jump.

With the addition of bombs and a flash suit/blue suit or shinecharge bomb X-mode can be used to generate a blue suit / super jump almost anywhere, even suitless underwater.

Entering X-Mode

X-mode is entered when any forced-movement state ends while X-Ray is active. E.g Knockback or Bomb Jump.

Spike X-Mode

The easiest method is Spike X-Mode. This requires Morphing Ball. To perform: Bounce in Morph near spikes so that you will land on them, select X-Ray and hold dash, hold forward before the spikes damage Samus, and unmorph when Samus hits the spikes.

This is easiest because the dash input for activating X-Ray is buffered due to the unmorph animation.

Spikes have a 2 frame window for unmorphing and entering X-mode, most Thorns have a single frame windows for entering X-mode.

If Samus performs a dashing stationary spin jump, switches to X-Ray in the air and peforms a down, down-forward motion to preserve horizontal momentum (like a mockball) Samus can build a shinecharge while in X-mode.

If done correctly, Samus' legs will be moving as if she were running and X-Ray will be active, but Samus will not be moving.

This can also be done by hitting spikes twice in a row. This requires having more health, but may be easier to learn. The first spike hit is used to bounce in morph form, and then the unmorph happens frame perfectly just before the second spike hit.

Slope X-Mode

Similar to a slopespark, a slope may be used to land before knockback frames are over. This allows using X-Mode.

This is easiest to perform with a buffered jump input. Frame perfectly direction switch on contact with an enemy and hold run to activate X-Ray. The direction switch performs a mini damageboost into the slope allowing samus to land before the knockback timer expires.

This mode cannot be used to build a shinecharge, only to generate a bluesuit and / or super jump.

Door X-Mode

This is a variant of Slope X-Mode: While doors are closing, they act like slopes.

This is done by taking damage while going through a transition (while facing away from the transition), similar to getting door stuck for an X-Ray Climb.

Like Slope X-Mode, many of these set-ups seem to require a frame perfect switch from forwards to backwards. There is at least an exception for Jesuswalk on PAL.

Bomb X-Mode

A bomb jump can also start while X-Ray is active, and when it ends the game reinstalls the normal input handler without clearing the frozen time flag, leaving the game in X-Mode. This makes the bomb jump a second way, besides knockback, to put Samus in a forced-movement state that ends while X-Ray is active.

Bomb X-Mode lets you enter X-Mode almost anywhere you have Bombs or Powerbombs and X-Ray. A more difficult setup also allows for room traversal in this form of X-mode but Samus cannot build a shinechargein bomb X-mode, so it is usually combined with a flash / blue suit or a shine charge to enable Samus to super jump or gain a blue suit.

It is the most recent method discovered to enter X-mode and technically the most complicated.

The game decides whether Samus gets bomb jumped when the bomb countdown timer reaches a specific number shortly before exploding by checking if Samus was within range of the bomb, this check happens one frame before the bomb jump processing code runs.

Being outside of the bomb blast radius for the check (no bomb jump) but frame perfectly moving into the blast radius while activating X-Ray forces the bomb jump code to run over and over, triggering a bomb jump while time is frozen and putting Samus into X-Mode.

Due to its complex nature (requiring being outside then inside the bomb radius frame perfectly) there are many methods to enter bomb X-Mode.

TAS-style setups can do it almost anywhere, while human-viable setups so far are limited.

The tutorial video below demonstrates many of the currently known RTA viable methods of entering bomb X-mode.

Frozen Enemy X-Mode

Using a frozen enemy, Samus may land very quickly. This is what TAS does to do Superjumps basically anywhere.

This method would not be very RTA viable, since it may require pixel perfect enemy and Samus positioning and hence many frame perfect inputs. For any particular application, a set-up could possibly be found. It would still be very inconsistent.

Reserve Tanks

The reserve tank automatic refill can extend the knockback timer. This can be used to allow entering X-Mode where it would otherwise be impossible.

The most famous example here is GT Superjump.

Effects

X-Mode is exited by stopping the use of X-Ray.

Samus will appear to be moving forward. In some instances of X-Mode, Samus will automatically move forward (TODO: When does this happen?). In most instances, Samus will only actually move forward by arm pumping or shinesparking. Samus will move straight forward, without falling, walking on air).

Touching a wall will crash the game.

Crouching in X-Mode will cause Samus to crouch and be unable to move until X-Mode is canceled.

Jumping while in X-Mode will cause Samus to be in a jumping state. Just as she does not move forwards, she will not actually move. If X-Mode is released, she will gain that momentum. This is useful for getting off of the spikes when Spike X-Mode is used.

If X-Mode is entered with non-zero dash speed, a shinespark may be charged. Since Samus is (most likely) not moving, this allows charging a shinespark in a very short distance.

X-Mode may be entered with a shinespark suit, despite the use of X-Ray. Note if the method of entering X-Mode requires a damage boost, this may not be possible since the damage boost may use the spark.

Superjumps

If Samus shinesparks vertically while in X-Mode, every frame her vertical momentum is increased by 7 pixels until she hits a wall or runs out of energy. If X-ray is released and X-Mode is cancelled before the shinespark has ended Samus will lose horizontal momentum but retain vertical momentum, and be put in a falling state while gaining a blue suit. This momentum, often combined with pose changes can allow Samus to clip through many solid tiles, locked doors, the Maridia tube, even out of bounds, while using far less energy than a regular vertical shine spark.

Until the discovery of bomb X-Mode which allows Samus to super jump almost anywhere, practical uses of super jumps were very limited.

Speedrun Uses

Current routes of categories use X-Mode infrequently.

X-Mode Blue

X-Mode is a fairly simple method of generating a blue suit, especially the spike method. It can frequently be the fastest choice. For example, in 14% xSpeed before entering Maridia it should be fastest to get a blue suit in Hellway via X-Mode.

To generate a blue suit with X-Mode, simply shinespark while in X-Mode and cancel it before the crash.

Given the tendency of Superjumps to go Out of Bounds, it is safest to cancel X-Mode during the windup for the shinespark. Note that if a Spike X-Mode is used, this means that Samus will be on spikes and will now have a blue suit. Thus, damage can be taken very quickly.

Bowling Alley

A Spike X-Mode may be used to cross Bowling Alley with no tanks and no suits. This is one of the possible routes of Max% GT Code, which collects Gravity but no Varia.

To do this, bounce on the ledge and then X-Mode on the spikes. Samus will appear to be running in place. Release forward, and Samus will move slowly across the room. The Chozo will eventually come into sight. When you think you are close enough, press jump, then release dash to exit X-Mode. If you do this too late, you will run into the wall and the game will crash. If you are worried that you'll go too far, you can hold forward to stop Samus from moving, then arm pump to move her closer to the Chozo pixel-by-pixel.

Colosseum

Crossing Colosseum suitless without Space Jump, Grapple, or Ice Beam can be quite tricky. This is especially true going from right to left, where the last jump from the spike is extremely precise.

Instead, a short Spike X-Mode can be used to make this jump easier. This isn't too terrible, despite being frame perfect, due to the nearby Save Room.

Jesuswalk

A door X-Mode may be used to cross Mt. Everest. This is required in 14% xAmmo.

There is a relatively simple set-up, by taking damage from a crab during the transition while low in the door in a spinjump. This allows buffering all of the inputs (backwards, jump, angle, and dash). Then the trick reduces to releasing backwards and jump frame perfectly.

There is a method to cross Mt. Everest with a Superjump using via a door X-Mode. It is claimed this only works on PAL, and the only clip of it requires a frame perfect switch from left to right to get a downwards knockback. If this method is humanly feasible, it would allow 14% xSpeed to be completed without the use of L+R wall jumping. However, the segment containing this trick would be extremely difficult, requiring: G-moding into Maridia, managing to get a shinespark suit afterwards, performing this Jesuswalk Superjump, continuing with the blue suit while fighting Botwoon, sparking up Halfie Climb Room, and then traversing Colosseum with minimal equipment before being able to save.

GT Superjump

This is a well known application from the 100% TAS. It uses a reserve tank extended knockback to get X-Mode in Golden Torizo's Room, to collect GT Missiles without Space Jump by using a Superjump.

This would enable a single Norfair route of 100%.

Not only is this method incredibly precise and thus fairly infeasible, it is also believed to not be faster for RTA 100%. Getting through Lower Norfair with this equipment is significantly slower, thus losing all of the gained time.

Technical overview

Activating X-Ray freezes time ($0A78) and replaces Samus's pose input handler ($0A60) with the X-Ray handler ($E918). X-Mode happens when something reinstalls the normal pose input handler ($E913) on the same frame X-Ray activates, after X-Ray has set itself up. The routine that does this never clears the time-frozen flag, so the game ends up with the normal input handler running while time is still frozen, a state it is never meant to be in.

This is why X-Mode is entered by pressing X-Ray on the frame knockback finishes. The knockback finish routine ($91:F31D) clears the knockback direction, sets the normal movement handler and writes $E913 to $0A60, but doesn't check or clear the frozen flag. The existing setups (spike, slope, door, frozen enemy, reserve tank) are all ways of making that frame reachable. Bomb jumps also end up in X-Mode, because the bomb jump check runs every frame while time is frozen, so a bomb jump can fire while X-Ray is holding the bomb timer.

The effects follow from that state. Samus's pose and animation respond to input, but nothing moves because time is frozen, which is why she appears to run in place. Releasing X-Ray exits the mode. Touching a solid tile by arm pumping crashes the game, because the wall-collision input handler ($91:816F) takes its time-frozen branch and calls the X-Ray routine at $91:FCAF with JSR instead of JSL, a bug that was harmless before X-Mode because the branch was never reached.

Other Uses

Here, other uses (including theoretical applications to categories) can be documented as they come up.