Posted May 07, 2023 by EyeBall Tank
#update #godot
* Added an oxygen system where both characters have a visible bar that decreases the longer they are on water and resets if they leave water; They die instantly if the oxygen reaches 0 (This feature right now is lazily implemented because i just added “oxygen -= 1” in the code without using a Timer node or even a Yield statement so i should improve this some day).
* Life system: Both characters share a life and if one dies, the life goes down.
* Picking up coins adds a new life (Actual number of coins needed and max lives might change).
* Fixed an issue where the game crashes if the Companion touches the Lifeguard floater.
* The Companion can use the floater too and when it’s picked up, both characters are affected (There may be some weird bugs because i tried to fix an issue where if the floater is picked while the Player is getting hurt, their hurtbox would still receive damage).
* Fixed volume sliders being at 0 but not silencing the sounds: Now they’re at 50% which also affects the sounds (Meaning you can see it to 100 just to see how loud it can get); These sliders are still a bit buggy but maybe next time.
* Changed how things disappear (Keys, doors etc) to avoid yield related statements in code.