This layer allows mappers to show standalone graphics in the map, most commonly used to set backgrounds and create parallax effects. They can be positioned statically or follow the player. You can create multiple quad layers in a single map.
</div>
Line 32:
Line 29:
== 传送层 ==
== 传送层 ==
<div lang="en" dir="ltr" class="mw-content-ltr">
此图层包含所有传送相关实体。
This layer contains all tiles related to teleportation.
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
在顶部工具栏,你可以按下 Tele 按钮来改变此层的一些选项:
In the top toolbar, you can press the Tele button while this layer is selected to change these options:
* Angle: Angle at which the speedup tile will launch you. 0 is actually 90° (aiming to the right). By this logic, 180 will make the speedup tile face to the left. It can be adjusted in increments of 45 to hit all directions as well as all diagonals, and you can set a specific value as well.
This layer contains switches that can enable and disable other tile functionality temporarily or permanently or change their behavior such as increasing the time a tee is frozen.
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
在控制激光门和锤击、冻结、武器等时非常有效。
This is specially useful to use with doors, hammer hit, freeze and weapons.
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
在顶部工具栏,你可以按下 Switch 按钮来改变此层的一些选项:
In the top toolbar, you can press the Switch button while this layer is selected to change these options:
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="Number"></span>
=== Number ===
=== 数字(Number) ===
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
* 对于所有开关按钮,相同的Number序号确定开关和控制元件的对应关系。
* For all buttons, this number will change what tiles it affects.
* 对于时间奖惩区域,Number表示直接给玩家的跑图记录增加或减少多少秒。
* For bonus and penalty tiles, this number represents the number of seconds to subtract from or add to a player's race time.
* For switch layer doors, weapons, freeze, deep freeze, hearts, shields, bullets, plasma turrets, and all laser types, this number corresponds to which buttons turn the tile on and off.
* 和传送层类似,你可以按下{{key press|F}}按键自动切换到未被使用的序号。
* Similarly to the Tele layer, you can press the F button to select an unused number.
* For jump tiles, this number sets the number of jumps a player has. Note that if a player stands on a stopper tile, they can still jump even if this number is set to zero.
* For telegun tiles (index 98 and 99), it modifies which weapon it affects: 0 - all weapons, 1 - [[Special:MyLanguage/pistol|pistol]], 2 - [[Special:MyLanguage/grenade|grenade]], 3 - [[Special:MyLanguage/laser|laser]]<ref>https://forum.ddnet.org/viewtopic.php?t=6676</ref>
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="How_to_use_doors_with_lasers"></span>
=== How to use doors with lasers ===
=== 如果使用激光门 ===
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
首先在开关层中选择一个未被使用的序号,然后选中 Door 门方块放置在您设想的位置两个端点处。
First, select an unused Switch number, then select the Door tile and place it at both extremities of where you want your door to be. Then, place Laser Length tiles of the appropriate length next to each of the two door tiles. The door will be activated by default. Place a Switch Deactivate tile with the same switch number to let players open the door. You can then place Switch Activate tiles after the door to make players close the door behind them. Alternatively, you can use Time Switch Deactivate and use the Delay option to make the door open, and then close after the allocated number of seconds.
This layer allows mappers to add graphics for the tiles in the map. By default, players cannot see your map unless you include tile layers, or if the player has <code>cl_overlay_entities</code> enabled. You can create multiple tile layers in a single map.