Docs Tutorials
Polish and feel
See how Lichgate Depths makes every hit, break and boss phase feel strong, then add the same to your game.
In the editor: Welcome ▸ Tutorials ▸ 5.3 links here; tick Done in the lesson list when you've finished.
Reading lesson · about 35 minutes · Advanced mode
What you'll learn: how a game feels good to play: hit feedback, screen shake, flashes, freezing time and effects that tell the player what's happening.
Before you start: do Debugging.
#1. Play it first
Open Lichgate Depths (File ▸ Open Sample Project) and play into the Catacombs. Break an urn, fight a skeleton guard, take a few hits and let your health run low. Note every sound, shake and flash you notice. Most players never notice them; they only notice when they're missing.
#2. Getting hit
Stop the game (Shift+F5). In the Explorer, under a hall, open Atmosphere and double-click Sky & light to show the hall's settings in Properties. Under Post Effects:
- When hit is split: the picture splits for a moment when you take damage.
- Low health is on: the screen edges beat red when you're nearly dead.
Every hall has the same two settings, so the game feels the same everywhere.
#3. Hitting things
- Game Settings ▸ Combat has Screen shake and Hit pause (a tiny pause on melee hits) on, and Damage number size at 0.5, so numbers don't cover the fight.
- Game Settings ▸ Sounds ▸ Melee swing is swing.
- Click an urn. Its Health / breakable has a Hit sound (tick) and a Destroyed sound (crumble), and Breaks apart sets How to shatter.
- A cracked wall and a skeleton guard each have a Trigger with When It is destroyed: Shake screen and a dust puff with Particle effect (the guard only puffs).
Play it now: clear the Hit sound on one urn and break it next to one that still has it. Feel the difference.
#4. Big moments
In the Lich's Throne, open the script Morvane's phases (on Morvane, the lich) in the Scripts tab. Each row of its PHASES table has a flash color for screen_effect. His death Trigger starts with Freeze time (1.2 seconds at a quarter speed) and a gold flash. Small hits get small feedback; a boss dying gets the biggest.
#5. Effects that explain
Look at what the Visual effect behaviors tell the player: the soul shards glitter (worth picking up), Morvane's shield bubble shows only while he can't be hurt, and the ward runes have a magic circle (step here). The throne's Screen mood turns the screen red in phase 2.
On Lichgate HUD in the HUD tab (F10), the gold and key counts have When its value changes set to punch, so you see every coin arrive.
#6. Add it to your game
In your Level 4 game, add When hit and Low health to every level, a Hit sound and Breaks apart to one breakable thing, and a death Trigger with Freeze time to your strongest enemy. In code:
on("destroyed", function()
freeze_time(1.2, 0.25)
screen_effect("flash", 0.3, 1, "gold")
shake(0.25, 0.6)
end)
#Try it yourself
- Drag Game Settings ▸ Game feel ▸ Juice down to 0 (calm) and play, then up to 1 (juicy) and play. Pick what suits your game.
- Give one enemy a Trigger with When It is hit and Show text (floating), so every hit says something.
#Learn more
#Next
Get an email when Voxel Game Maker launches
It's coming to Steam with a launch discount. One email on launch day, the odd progress update, nothing else.