I’m having issues with creating health for my game, I have created a GUI, however, it isn’t working. I want the health to decrease when the character “Santa” touches a “Holly bush” and increase when the character touches the “Cola”.
GUI Script:
I’m having issues with creating health for my game, I have created a GUI, however, it isn’t working. I want the health to decrease when the character “Santa” touches a “Holly bush” and increase when the character touches the “Cola”.
GUI Script:
On the on message function, you need to check for “trigger_response” and message.group to check for bush and cola.
I have a tutorial on hp bar which may be helpful: HP Bar Tutorial (In-game and GUI)
You can also download the project file to see the code better