I'm thinking that it has to do with having two variables with the same name. You have a global variable called Health and a local variable with the same name, probably that is messing up on the Java player.
There are a number of areas that differ between Scratch and the Java player and I think you have just discovered another difference.
Offline
Running things in a Java applet causes them to run differently than when run locally......For example, the screen size is not exactly the same. Slobasso ran an experiment which proved that.
Offline