Godot 4 Tutorial - Secret Areas @PmkExpert
Godot 4 Tutorial - Secret Areas  @PmkExpert
Uploaded February 2024 | Updated November 2026, 3 hours ago
Games Featured:
Minimal Slide - pmkexpert.itch.io/minimal-slide
Falling Blows - pmkexpert.itch.io/falling-blows

Made in Godot 4.2
This tutorial show a simple way to add secret areas to tilemap based 2D games.

Godot 4.3 update
4.3 added the TileMapLayer node, meant to replace the old TileMap. Converting a Tilemap to TileMapLayers is very easy, as the editor gives an option to automatically extract the layers and then you can just change the TileMap node to a simple Node2D.

As for the code shown in this video, it needs very few changes.
The first change is to simply change what type of node the functions at 1:59 check for (from TileMap to TileMapLayer) and change "get_tileset()" to "get_tile_set()".
The second is to change how the z index and the light mask of the duplicated TileMapLayers are changed at 2:30: instead of "background.set_layer_z_index(0, -5)" use "background.z_index = -5" and, instead of only "background.set_light_mask(3)", loop through all the children (the tile map layers) of the duplicated node to change each one's mask ("for layer in background.get_children():" - "layer.set_light_mask(3)").
Godot 4 Tutorial - Secret AreasMinecraft maps device - Falls detector[Concept] Action Games - Combos, Recoveries, Charged and Special AttacksPhysically demanding gameplay - Godot Devlog 0Minecraft creation - Angelic Hot SpringsSpecial mob - Ep. 3 - GhostI added functional showers to MinecraftConcept - Season Cycle in MinecraftUnexpected - An Interactive StoryMinecraft Invention - ParachuteSurvival Expansion - Ep.2 - QuarryMinecraft prototype - Turn-based battles
Pmk |

Godot 4 Tutorial - Secret Areas

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER