After meeting with my supervisor, it became clear that the game was lacking something. There was no real intent to do anything once loaded into the level. After discussing what could be done to add more to the game from the get-go, I decided that the best idea would be to add more gameplay elements, specifically, more doors to open before the level can be completed.
I began by making a door frame and using the previous door I had from the Horror Hospital Pack and cubes with my own material on them:
I placed four of these around the map where I had laid out my sections right at the beginning when I was building the level.
These are the different sections of the level. The doors will not open until the notes from that section have been collected. To achieve this, I added 'if' statements to the note collection script, where the first door requires there to be a certain number of notes collected, the nest requires more...:
I also had to create a new script for each door, in order to register that the door was now unlocked (linking it to the notes script), and allowing my newly created animation and audio source to play once when the door is opened by the player via collider trigger (onTriggerEnter).
Here is the door script (each door has one with the number changed to correlate):
And here is the animator to control door one (all doors the same):
Comments
Post a Comment