Here is the updated shader of the invisible wall. I was close with it when I last worked on it as all I had to do to get it to work was change a few values.
This is the puzzle for Area 3 Puzzle 2. The player has to navigate the dark while using the jetpack.
I made a script for an electric box where you use your electricity on them and they charge up which activates lights in the room. These lights then slowly dim after a few seconds so you have to navigate the level quickly. This is the script for that.
When the player dies there are checkpoints which now work properly. In this first script, once I enter a checkpoint trigger, it turns the Boolean to true and turns off the trigger box so I can’t activate it again.
Then in the next script, once the player dies, it plays the death screen where it disables player movement & camera controls and starts a coroutine where it checks if a Boolean has been ticked or not.
This is the new pipe to area 5 as before it was terrible. I added a light at the end to make it more menacing.