Docs Tutorials
Cutscenes
Make a short cutscene where the camera flies to a gate and it slides open, and play it from a pressure plate.
In the editor: Welcome ▸ Tutorials ▸ 3.8 ▸ ▶ Start goes on in your My Playground project with this lesson's checklist.
Build · about 25 minutes · Advanced mode
What you'll make: a pressure plate that plays a cutscene: the camera flies to a gate, a caption shows, and the gate slides open with a sound you made in the last lesson.
Before you start: do Music, sounds and particles. Go back to the level from Switches, moving platforms and traps (pick it in the Explorer), or any level with a wall and a Locked gate in it, plus a Pressure plate a few tiles away. Both are starter models: if your Models panel doesn't have them, choose Create ▸ Add Starter Models.
#1. Make a cutscene
- Pick the gate and set its Script name to
gatein Properties. - Open View ▸ Cutscenes. Click + New ▸ Blank and set the Name to
Gate openson the right. - Add steps with the colored buttons under the picture:
- + Camera ▾ ▸ Camera: fly to, with Look at object and Object
gate. - + Screen ▾ ▸ Caption / title with
Somewhere, a gate opens…. Set its Starts to Together with it, so it shows while the camera flies. - + Sound ▾ ▸ Play sound with the sound you made in Music, sounds and particles.
- + Objects ▾ ▸ Move an object: Object
gate, To the tile beside it, so it slides open. - + Camera ▾ ▸ Camera: back to the player.
- + Camera ▾ ▸ Camera: fly to, with Look at object and Object
- Press ▶ under the picture to preview it.
#2. Play it from a pressure plate
- Keep
Gate opensopen in the Cutscenes tab. Go back to the level, pick the Pressure plate, and in Properties click + Add behavior ▸ Play cutscene. It adds a Trigger that plays it once when touched. - In its Play cutscene action, check that Cutscene says
Gate opens.
Play it now: step on the plate. The camera flies to the gate, it slides open, and the camera comes back to you.
#3. The same with code
Instead of the Trigger, a script on the plate can play it too (remove the Trigger, then Create ▸ New Script… with the plate picked), with Event Player presses E:
play("your sound")
cutscene("Gate opens") -- waits till it ends
shake(0.3)
banner("The way is open")
#Try it yourself
- Make an intro cutscene that starts on entering your level (its Starts setting), with Only the first time ticked.
- Add a Talk step that runs a conversation from Level 2.
#Learn more
#Next
Capstone: a roguelite with three generated floors.
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.