Issue with Levels - Keeps Printing Level 5

It’s a bit late now and my head might not be working properly. I double checked my code with the Git for the lesson but I can’t find a reson why this is not working. If I set the starting level to 4, I get 700HP, correctly, So the GetStat method is working.

However, debug keeps saying I’m level for even when I set start level at 1. And it doesn’t change, whatever I do.

Here’s my Git: https://github.com/Nihdez/RPG-Project

Help :’(

Fixed. A comparison operator was the opposite of what needed to be.

1 Like

Sometimes, it’s just little things like this that can have a huge impact on your game but are very hard to spot. Good job sorting this out.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.