Ice

From MZXWiki
Jump to navigation Jump to search
Ice # 25 Id25.png
Robotic name Ice
Default color c3b (cyan on dark cyan)
Default param 0
ID char 0 (#25)
ID anim. colors Ice animation (#160-#163)
Attributes Floor
Active
Effect when
stood on
Player is moved according to PLAYERLASTDIR

Ice is a MegaZeux built-in element. Ice is a special floor: whenever the Player starts the cycle standing on Ice, they will be moved in the previous direction they moved in (as indicated by PLAYERLASTDIR). If the previous moved direction is unset (PLAYERLASTDIR is 0), for example after entering a board through an entrance, Ice will not move the Player. This movement effect does not affect anything aside from the Player.

If a Fire is placed on top of Ice, it will melt the Ice into a Still Water and be extinguished immediately. Ice can not be overwritten with Floor or Fire by an Explosion.

Behavior

The entire parameter of Ice is the current animation Stage.

If the Stage of Ice is 0, it has a 1/256 chance of advancing its Stage to 1. If the Stage is 1 or 2, it will advance to the next Stage; if the Stage is 3, it will reset back to 0.

The current display character of Ice is determined by position parameter + 160 of the ID animations.

Unintended behavior

Ice with a Stage of 4 or greater can be created. These Stage values continuously increment the parameter until the Stage overflows to 0. This results in buggy animations referencing other ID animation and ID damage values, the specifics of which are version-specific and unsupported.