Ok so in my game there is player1 and player2. They each have 10 health (protected int health = 10;)
I then used (String hp = String.valueOf(health); to make it a string and then drew it to the screen using drawstring. I want when the player gets shot, to subtract 1, then repaint it, can’t seem to make it work.
Any help?