Linedef type 250
Linedef type 250, Mario Block, is a type of floor over floor platform which behaves like an item block from the classic Mario games. When hit from below, it will award an item or items to the player who hits it, briefly displaying a corresponding sprite appearing out of the top of the block. The Mario block can be seen in Pipe Towers Zone.
The flats, floor height, and ceiling height of the FOF are determined by the flats, floor height, and ceiling height of the control sector. The control linedef's middle texture is shown only briefly during map load as the FOF's side. After that, the below texture is used for the FOF while there are items within the control sector. If there are no items left, it will change to the upper texture. If the control linedef has a back sector, the FOF's top and bottom display the back sector's ceiling flat if there are items left, and the back sector's floor flat afterwards.
The light level of the control sector will determine the brightness of the shadow cast by the FOF. If the light level of the control sector is lower than that of the target sector, then it will cast a dark shadow. If the light level of the control sector is higher than that of the target sector, then the FOF will illuminate the area below it. If the light level of the control sector is equal to that of the target sector, then the FOF will not affect the light of the area below it.
To make the Mario block work, at least one appropriate Thing must be placed inside the control sector; otherwise, the block will behave as though all items have already been taken from it. If multiple Things are inside the control sector, the block may be struck more than once and will award one item at a time. This linedef type was specifically made for Mario mode, but it will function in any gametype. However, outside of Mario mode, it will make a different sound when struck.
Different Things will have different effects when placed inside the control sector. Rings and coins will pop out of the top, and add to the player's count. If monitors are placed inside, their screens will pop out of the top when the block is struck, and their effect will be given to the player. Enemies inside the block will take damage when the block is struck. If they are killed, the rewarding score is given to the player, and the trapped flicky will pop out of the top of the block. Enemies which take multiple hits to destroy, such as the Crawla Commander, will pop out of the top with one hit point lost, and attack the player. Bosses will not pop out of the top of the item block, nor be damaged. Other Objects will simply pop up and sit on top of the FOF, and play the sound heard when a Chaos Emerald is collected (or
sfx_mario9, if the level is in Mario mode).
If the control linedef is given the Not Climbable flag, the Mario block is turned into a brick block, which will shatter when hit from below. If the Slope Skew flag is set, the Mario block will turn invisible until it is hit from below for the first time.
- Mario blocks should usually have dimensions of 64 fracunits by 64 fracunits by 64 fracunits, as this is the size needed to properly display the standard Mario block textures, as well as the size required to make the block easy to strike.
- In general, Mario blocks should be given the same textures that are used in Pipe Towers Zone.
- A little creativity in what items come out of the blocks is good, but don't overdo it or the blocks will make no sense. Generally, the best Things to put inside the blocks are a single coin, a Fire Flower, a single power-up monitor, multiple coins, or multiple coins plus a single power-up monitor.
- A clever idea is to put springs in a block, but be sure that the top of the block is accessible, and that you don't overuse this gimmick.
- Be very careful about putting enemies in blocks; an overabundance of blocks with enemies in them is pointless and annoying.
- Don't put Chaos Emeralds or other powerful items in blocks unless it's a very specialized gimmick for a mod.
- Example file: ex_ld250_fofmarioitemblock.wad (MAP30)
|How to use|