In the unreal engine survival series, we worked have already implemented swimming and diving mechanisms. As for now, player can dive underwater without any time limit. Player can stay under water as long as player want, today, I'm going to add a oxygen management system so that once character goes underwater, the level of oxygen will start to deplete and in order to fill it back, the character has to come to the surface. To represent the oxygen level, we will add a simple progress bar that fills in blue to the HUD widget..
[Edit]
use the project files in this release : https://www.patreon.com/posts/54121475 . Gameinstance is missing in the attached files
password=codelikeme_o2
Thilina Premasiri
2023-06-22 19:55:20 +0000 UTCOndra Souček
2023-06-22 19:43:36 +0000 UTC