Play & Edit 2 Walkthrough
Game logic in Dreams requires you to connect gadgets together with wires so they can communicate, just like gadgets in real life. We've made this as easy as possible with the kit elements by separating many of the the relevant input/output ports into simply-named nodes. This Play & Edit takes you through some of our puzzle and interactive elements, including wiring some gadgets up.
Lesson 1#
Wire a floor button!#
A very simple puzzle that we all know is a button we push to make something happen. In this scenario our button will open a Secret Door Wall, which we can see because of the two gadgets at the top of it.
Wires in Dreams are created by pressing over an input (on the left side) or output (on the right side) port on a gadget. This gives you a wire on your imp which you can connect to an input or output port on another gadget in the scene, again by pressing over it.
Here we want to create a wire from the top one of the three nodes above the Floor Button. It's orange and is called Permanent. Hover over the output port (on the right side) of Permanent and press . You now have a wire on your imp. Hover over the input port (on the left side) of the node on the door called Open and press .
You've now connected the button and the door, so when you walk over the button the door will open!
Lesson 2#
Fun with lasers!#
With a few pieces from the Traps, Triggers & Puzzles collection, you can make laser beam puzzles. These elements have auto guides to set them to grid snap to make sure they line up. For this lesson, place a Laser Receiver, using the outline on the door to position it correctly. Then in play mode, move the Mirror Pedestal so that the Laser Beam can bounce off it to hit the receiver. These three elements are all you need to create your own laser beam puzzle, to open a Secret Door Wall or whatever you fancy.
Lesson 3#
A puzzle with bolts!#
As well as being a useful weapon, Bolts can be used for puzzles. Remember to plan carefully when creating puzzles using a finite resource like Bolts. You'll want an abundant supply nearby, because if the player runs out they'll get stuck.
The Bolt Target sends a signal when it’s hit by a Bolt. Next to the Bolt Target we have some Rising Pillars, which will rise when they get a signal. So we need to create a wire from the Bolt Target to each of the Rising Pillars. Hover over the Target Activated node's output port and create a wire with . Now we need to connect it to all of those Rise Nodes. To speed up the process we can use a handy trick. While the wire is on your imp, hold and hover over the input port on a Rise node. Press without letting go of . Notice the wire is still on your imp. Connect it to the rest of the Rise nodes without letting go of . Much quicker!
Lesson 4#
Let's add a destructible floor!#
When a dungeon is destroyed around the player it really adds to the tension. As we’re now facing the fearsome Dungeon Troll, let's make the battle feel more epic. In the Floors collection you'll find the Dungeon Destructible Floor. Stamp it into the room, making sure to line it up with the outlines. Now when the troll smashes the floor with its club, pieces of floor will become damaged. This is done by emitting a broken version while destroying the intact one.
Lesson 5#
Make a pressure button puzzle!#
We started with a button which stayed down once pressed, but you can make pressure buttons too, which only stay down while there's weight on them. These work perfectly in combination with the Moving Pillar.
Get ready for more wiring. This time make a wire from the output port of the node called While Pressed (the middle of the three) to the input port of the node called Open Door. Now try walking on the button.
Lesson 6#
We wanted a pressure button!#
The button didn’t close the door when we walked off it, but it’s very simple to make it do that!Create a wire from the output port of the node called When Released, to the input port of the node called Close Door. This will mean that once the button no longer has something on top of it, the door will close.
We also have a nifty little node called Reset Button, which resets the visual state of the button, raising it so the player knows it needs weight put on it. So create another wire from the output port of the node called When Released (don’t forget you can use to do more than one wire if you’re still holding your first) and connect it to the input port of the node called Reset Button. Now try walking over the button and notice the button raises and the door closes when you step off. Just push the Moving Pillar over the button and you’ve solved the last puzzle and can escape your dungeon!
Phew! Do you feel like you can start to create your own dungeon crawler now? We hope so! We’ve covered a fair portion of the kit, but there are a few other little pieces you can discover for yourself. Why not jump into the Dungeon Crawler Foundation and have a go at creating your very own dungeon? You can always refer to the other sections of this template guide to find out more about some of the elements, or solutions to problems you may have encountered.
The Dreams User Guide is a work-in-progress. Keep an eye out for updates as we add more learning resources and articles over time.