Hi. I want to make my progress bar trigger an event when it hits 0% from 100%, but can’t find a way to do this. I have a horror game which uses sanity, and I want it to end the game if the players sanity hits 0.
How are you updating the progress bar atm? Since you’re sending the progress Sanity float data (right?), perhaps there is no need to query the progress bar itself, and simply monitor the sanity variable instead.
Think about the place in the code where you add / remove sanity. If in doubt, do post a screenshot showing this value being updated.