Did anyone else notice?

Hi Guys,

Did anyone else notice that in this lecture when Sam was showing us how the code we just wrote work’s, during the health regen part near the end, when his character level’s up his health actually drops from 82% to 70%.

Now I realise that the character’s health at 70% when level 2 is greater than it’s health at 82% when level 1, but when displayed as a percentage it doesn’t look right seeing the number going down when we are being shown that health is going up.

For my own project, I simply set the current health to the max health in the onLevelUp event.

Thinking of doing the same but have noticed that later we switch to a display bar so might just hang on till then.

like every RPG I’ve ever played

1 Like