In this devlog, I go over 5 steps I used to make the classic "The Floor Is Lava!" game into a puzzle.
The considerations in helpful list form:
Lava Material
Animate crisscrossing noise patterns and use mesh distance fields to give the illusion of movement and dynamically change the material contrast when meshes intersect with the lava plane
FIREBLU
Adjust the colors so the lava resembles the immortal FIREBLU texture from the original Doom
Particle Effects
Use bubbling lava particles from a store asset pack and have the niagara system spawn particles in world space near the player
To get a more immersive soundscape, use a callback on particle creation from the niagara system to play a spark sound effect when certain particle splashes are spawned in
Collision Logic
Use a line trace straight down from the player's collision capsule to check if the actor directly below them is tagged to be part of the active lava
If standing in lava, implement a short timer as a grace period, if it expires and the player is still on the lava, then activate the logic to turn the lava off
Accessibility
Allow for less coordinated players to move around the lava by designing paths that don't require any jumping or parkour to traverse
Ensure that all color-coded puzzle elements have other visual distinctions (such as letters and numbers) for colorblind folks
