Wednesday, 15 April 2015

Arlo - Scripts 1

 This is the script that I used to make the bottles smash. We needed to make it so that the bottles would fall apart only when the player controller walked into them. Megan built two separate bottles, one complete one and one that is split into many different polygons. I made it so that when the player enters the collider zone of the bottle the complete one gets switched out for the broken one in the same place. The broken bottle has a box collider and a rigid body on it to make it collapse without falling through the floor.


We have a main menu at the beginning of the game so you can choose to play or exit. The script for this was very simple as it simply involved adding the script to a button and adding a box collider to each button so when it's clicked you load the level selected in the script. The first script there was originally a settings menu and it would allow for the player to go back to the main menu when clicking back. However we decided not to have a settings menu as we have no settings to change and decided to put the instructions on the main page. Sophie drew the instructions and the background is just a screen shot of AJ's room. I made the Arlo heading and the play game and exit buttons.


No comments:

Post a Comment