I have created a final boss and would like him to need to be hit multiple times to be defeated but can’t seem to figure out how to do that. I have looked at other people asking the same question and tried to copy their flow but I can’t get anything to work.
I checked out your game, and I’m assuming that the pirate on the last level is the boss in question. The behaviors you have are really close, I think you just need to tweak a couple of things to make it work:
When a fireball touches the pirate, you are sending -5 into the value of the health bar - this will instantly kill the pirate, which isn’t what you want. Instead, try adding a “Value” behavior and set it to the health of your pirate (100). Then send that -5 into the “+” input of the value, which will subtract 5 each time (by adding -5 to his health)
Once that’s done, just connect the output of your health bar to the input of your filter, and I think it should work as expected!
I put together a simple example to illustrate what I mean: