I'm trying to show the enemy's health with pictures, but I keep having some issues.
The problem:

I had set the variable to be 100 originally, and when I take away ten, the wrong digit is being assigned. When I press F9, it says that the health variable is set to 90, but when I look at the variables I set for each number, it says that the hundreds column is equal to nine and the rest of it is equal to zero. But I thought it should work because of the way math works.
Please tell me what I am doing wrong.
It seems to be doing this with every number that goes into another digit. Whenever the first number goes to zero, it automatically resets to 9.
The problem:

I had set the variable to be 100 originally, and when I take away ten, the wrong digit is being assigned. When I press F9, it says that the health variable is set to 90, but when I look at the variables I set for each number, it says that the hundreds column is equal to nine and the rest of it is equal to zero. But I thought it should work because of the way math works.
Please tell me what I am doing wrong.
It seems to be doing this with every number that goes into another digit. Whenever the first number goes to zero, it automatically resets to 9.
Last edited by a moderator:





