created a basic blueprint and model for the keypad puzzle
The code below just allows the player to, once entering the collision box for the Puzzle, to enter the interact key to begin the puzzle
Allows the player to leave the puzzle pre-emptively before completing the puzzle and switches the cameras to the Player camera
This code allows the player to, after interacting with the Keypad puzzle, Allows the mouse curser to be displayed and allows click events to occur and allows the numbered buttons to be entered with an array. This also sets up the Puzzle camera and seamlessly switches from Player cam to the Puzzle camera.
This also displays .... when no buttons have yet been selected to portray to the player the length of the set digit code
When one of the digit buttons are clicked on, the corresponding digit is displayed on the black input box and added to the entered code
The < button is used as a backspace, deleting the most recent digit button entered into the black input box
the > key is to confirm the code input for whatever the keypad is connected to, to activate.
The red bar at the bottom is to display that the keypad has not yet been finished. upon entering the correct code, the colour will change green.
There is a camera connected to the Keypad BP in order to seamlessly switch between player camera and puzzle camera
Players can use this keypad when the Player Collision Box enters the Keypad's Collision Box and pushed the interact key
When the mouse overlaps with the button on the puzzle, it changes from its original material to a golden, brighter material to show a highlight of the button in use to make it easier for the player to see which button they are hovering over.
No comments:
Post a Comment