Custom Block: Difference between revisions

From MZXWiki
Jump to navigation Jump to search
m (Add ID and Robotic string)
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Custom Block|Custom Blocks]] (ID 5, <code>CustomBlock</code>) are a [[built-in]] [[terrain]] provided in the [[MegaZeux]] editor. 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|sprite collision]].
{{ID
|name = Custom Block
|id = 5
|robotic = CustomBlock
|color = none
|param = select
|idchar = 255 - use param
}}
[[Category:MegaZeux]] [[Category:MegaZeux built-in objects]] [[Category:Terrains]]
 
[[Custom Block]] (ID 5, <code>CustomBlock</code>) 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|sprite collision]].


There are several equivalent types of Custom Block for other use cases: [[Custom Floor]] for floors, [[Custom Break]] for breaks, etc.
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.
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.
[[Category:MegaZeux]] [[Category:MegaZeux built-in objects]]

Latest revision as of 10:17, 31 May 2025

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.