My Contributions
Contributions Details
Acquire Robot was one of the first contributions i made for Z.O.E. It's a simple script that allows the player to add a new robots to their roster. We can also set the number of starting robots from here!
In a nutshell
The obtainable robot keeps track of when the player enters & exits the trigger box, If the player is inside the triggerbox and presses the "Pickup" button the Obtainable is replaced with a new playable robot.
startWithDrones()
Here i made it possible to set what amount of robots you should have available at the start of the level.
In addition to implementing the UI in Z.O.E, I also implemented the Tutorial & Story elements
UI
UI buttons - gameplay coupling
Tutorial
In Z.O.E we gave the player the power to reset a puzzle and return to the most recent checkpoint at any time.
​
Checkpoint Activated
In a nutshell
When the player enters a checkpoint's triggerBox I reset all of the dead robots back to zero. After this the triggerbox gets disabled so the player cannot activate it once it's already been activated. I then get a list of all robots currently owned by the player, I loop through this list and set their new position to the checkpoints location plus a slight offset for each robot to make them line up neatly. Then I set this Checkpoint to be the players current Checkpoint.
​
ResetPuzzle()
This function creates new Obtainables at the correct location when Resetting back to checkpoint.
Reset button pressed
In a nutshell
When the reset button is pressed I remove all elements from spawnablePlayerCharacter & deactivatedPlayerCharacters, I then proceed with spawning all owned robots at checkpoint location, I then deactivate all of the robots except the currently controlled robot. The current puzzle is then reset aswell. Finally I update the UI.