Checkpoints During Boss Fight


Author - Cameron Euston


The Issue: 

While I was working on the boss fight, I wanted to add checkpoints to the fight so then when you finish a phase, the player would respawn at the next phase if they died. This worked for the most part but when the player would respawn, the player would get launched in the air to the current stage they were at. This was not the result I was wanting.

The Solution: 

The reason the player was getting launched in the air to the current stage was because at the beginning of a boss phase, the boss will knock the player to the current stage. The solution that I came up will to fix this was to save whether or not move the player at the start of the phase. Each time the player hit the check point, the bool to determine this would be set to false so when the player respawns, the player would not get launched.

Leave a comment

Log in with itch.io to leave a comment.