Hey guys, I’m new to all of this and I’m trying to make it so when I press F, the minon’s health will go down by one point, but I can’t figure out what’s wrong with my set up
Here’s a screencap, hope someone can help out, will take more screencaps on request
Your -1 is in the wrong place.
Basically you need to set health to be your current health -1.
So move your -1 to in front of the Set, plug the current health to the top input of the -1 and the output from -1 should go to the input of set. This will now set your health to current health -1 every time you press F.
There is also a ++ and – function that is available. So instead of running it like that you can just get your Health and plug it into a – node and you are done. This obviously only works if you are doing -1 or +1. For anything else you need to do as qdelpeche mentioned