Custom Block

From MZXWiki
Jump to navigation Jump to search
Custom Block # 5 Id5.png
Robotic name CustomBlock
Default color none
Default param select
ID char 255 - use param (#5)

Custom Block (ID 5, CustomBlock) is a built-in terrain. It is a generic wall which can display any character from 0 to 255 based on the value of its parameter.

They are static, non-interactive solid characters alongside terrain types like Solid, Normal, and Line. Custom Blocks in particular allow the user to choose any artwork out of the character set to be displayed, where other solid types have a single defined appearance. This property, while making them marginally more complicated to work with, means that a MZXer with even the slightest technical or graphical inclination will use Custom Blocks in favor of anything else almost all of the time. Custom Blocks are also the only solid terrain that can be detected by sprite collision.

There are several equivalent types of Custom Block for other use cases: Custom Floor for floors, Custom Break for breaks, etc.

Custom Blocks can be accessed from the editor by pressing F3 and selecting them from the menu. Placing them also involves selecting a character to display, which can be changed at any time by moving over them on the board and pressing Enter.