Devlog 3


Final Update!

What was added: Main menu with options to start or quit the game, checkpoints and respawning, and a platforming section.


I used widgets to make a few different UI elements, like the main menu. I also added in a little text that is displayed in the bottom of the screen and some text for when the player dies. The main menu uses a different level and a camera with the widget having buttons that take you to third person level. After that I added checkpoints and respawning. 

CThe checkpoint uses a variable called last saved checkpoint which saves the world transform of the player. Whenever the player runs into a checkpoint, its saved as their last checkpoint. When a checkpoint is loaded then that means that the player has died. 

So what Load checkpoint does is it will fade the player camera to black, create the widget with the YOU DIED text on it, teleport the player to the transform of the last saved checkpoint, then get rid of the widget and crossfade back to the player.

After adding checkpoints the player needed some threats they could die to. I added a killing floor.When the player overlaps with the killing floor, then load checkpoint is called and it prints out Yeouch! I also gave some weapons to the enemies to make them more of a threat.

I made these swords for the enemies to have and swing around to combat the player. 

Swinging the sword works pretty similarly to how the moving platforms work. It uses a timeline track, plugged into a lerp which sets the rotation of the sword. Then after a delay it repeats. Then I also made a variable for how many times the player gets hit and how many times they can survive a hit. When the player overlaps with the sword, theres a branch, with the condition being that the variable hits is greater than 1. If Hits is less than 1 then it adds 1 to hits and does nothing else. Once the player has been hit once, then the condition is met and the next hit will use load checkpoint to kill the player, then set hits back to 0.

After this I added in a little platforming section which I show off in the video, but I was not skilled enough to complete it on camera.

Files

Myproject2.zip 535 MB
1 day ago

Get MyProject

Leave a comment

Log in with itch.io to leave a comment.