Tuesday, 8 April 2014

Pressure Plate Puzzle

For the last week or more I have been looking at a tutorial on Digital Tutors. This tutorial is titled "Creating an Action-Adventure Puzzle in Unity". I have been working my way through the 16 videos, I am currently on number 11 and I am completing the quizzes at the end of each video. Within this tutorial there is a puzzle which the player has to complete; to complete the puzzle they have to walk over certain pressure points, in a certain order for a door to open.

I am hoping we will be able to use this puzzle idea within our game. For our game, the player has to navigate the maze and avoid the aliens to be able to escape the facility. Whilst avoiding the aliens around the maze, I thought this puzzle would be perfect for the player in our game to complete, as it will not detract from what we had in mind to begin with. By completing this puzzle, they will then be able to unlock the door and escape.

I have run this past the other members of the group and they seem to be up for having this puzzle element within our game. (Screenshots to follow).
A possibility with this puzzle, (like they have done in the tutorial) is to have the light orb, as the 'key' to be able to complete the puzzle. In the tutorial, they have a torch which needs to be placed in to the wall, which then allows the player to complete the puzzle thus opening the door. This is an added element we could have to tie all of our game elements together.




Here are some screenshots of the code that I have been creating with the help of this tutorial.

 Below is the Torch Script



Below is the Pressure Plate Script



Below is the Puzzle Logic Script




During this tutorial I encountered a few problems (not as many as I was expecting to run in to though!). Michael managed to help me fix one of the problems, where I had just mis named something, and since then all the scripts have been working. 


No comments:

Post a Comment