LiamMcKenzie / ScaredKrow

ScaredKrow is a game made for the third year "ID737001 Game Development" paper at Otago Polytechnic
MIT License
2 stars 2 forks source link

Catchup Area Reset - Bugfix #32

Closed DevonHenderson closed 5 months ago

DevonHenderson commented 5 months ago

Description:

When the player dies in the catchup trigger area, the bool for checking if the player is in catchup zone doesn't reset to false. This PR is a simple addition of setting the bool back to false in the GameManager on Reset()

Easier to show with video and I've included the inspector values at the side so you can see it happening.

Branch: Devon/Fix-Catchup-Reset-Bug

Fixes Issue:

Before fix:

https://github.com/LiamMcKenzie/ScaredKrow/assets/90590089/048e6fac-1a19-44f0-84df-e7df7adf31aa

After fix: Bool is still set to true when the game ends but sets immediately to false when 'Play Again' is clicked and Reset() is called.

https://github.com/LiamMcKenzie/ScaredKrow/assets/90590089/bf2edb8d-9685-4b0d-ace4-92adf33db22d