EX3 - Switches and Doors
For the third excersise we were tasked with creating a Door activated by a switch, when then transitions to a cutscene.
To start with i had to create a switch/button which can be activated by the player. I then made a simple door frame with the door being in red, along with the button to signal that they are connected. i then placed a camera into the view for when the activaiton happens
When the player does the activation i made sure that they have to connect the left hand ,activation hand, with the buttons hitbox. This could also only happen when the player uses the activation button, so there is no accidental use. a bug that i found was that the player would not always touch the button so to fix this i put a cube infront of it and calculated how far it has to be in order for the hand, at full stretch, to touch the button. No matter where the player is, when they activate it from any angle, they will be teleported to the box to give the illusion that they are touching it.
https://gyazo.com/ac549e7712bf7285421ce02e2a4646c2
https://gyazo.com/4262ada0200f8056003eab91e7e62bc3
After this i disabled all movement for the player as they are now in a cutscene. This activates the cutscene camera which can be placed anywhere. i placed it in a location where it could show the player and the button, aswell as the door opening. i used a hard cut to the other camera because i like that classic approach to story telling / showing the player such as Breath of the Wild, compared to the new stylistic use of one camera in God of War.
so when the button activates, the door slowly moves towards a hidden object underground, when it gets there it delays for a second and then returns the camera and full control back to the player. The button is then rendered inactive as it cannot be used again.
GameProgramming Project
Uni module about game progamming
Status | In development |
Author | Ethan_Carter |
Genre | Platformer |
More posts
- Group WorkApr 23, 2020
- EX7 - CombatApr 23, 2020
- EX6 - Moving PlatformsApr 23, 2020
- EX2 - CollectablesApr 23, 2020
- EX1 - Basic AvatarApr 23, 2020
- ContactJan 28, 2020
- Role of a Gameplay ProgrammerJan 28, 2020