Creating an Action-adventure Puzzle in Unity
In this series of tutorials, we will learn how to create a fun and challenging puzzle that is seen in most action-adventure games. Software required: Unity 4.3.
What you'll learn
In this series of tutorials, we will learn how to create a fun and challenging puzzle that is seen in most action-adventure games. We'll start out by setting up the torch prefab that will be a pivotal piece in our puzzle. Then we'll set up the system that allows the character to pick up and drop the torch freely. After that, we'll learn how to light the torch using the main fire in the scene and how to place it into the torch mechanism that will reveal the solution to the puzzle. Finally we'll jump into the challenge of scripting the puzzle logic. Here we'll create a puzzle controller that will handle the logic of our scene and learn how to input the information of the pressure plates the character steps on. Software required: Unity 4.3.
Table of contents
- Setting up the Torch Prefab 7m
- Setting up the Torch Socket 7m
- Creating the Torch Trigger 8m
- Picking up the Torch 8m
- Dropping the Torch 5m
- Lighting the Torch 9m
- Setting up the Torch Mechanism 6m
- Creating the Torch Mechanism Script 10m
- Setting up the Pressure Plate Animation 8m
- Scripting the Pressure Plates 5m
- Beginning the Puzzle Logic Script 8m
- Building up the Puzzle Logic 9m
- Finishing the Puzzle Logic Script 13m
- Setting up the Door Animation 6m
- Creating the Door Script 5m