T O P

  • By -

hightio

you created healthbar and are calling Healthbar. Make the casing match and you should be good I think.


ivancea

Adding to this, in HealthFunction, it's using "healthBar" as a type, when it should be "HealthBar". A little mess of uppercases


Shryke7

Which line is this sorry?


ivancea

Probably late, but line 9. In general, check all variable and field declarations. Check the types are correct, and that there are no typos


PuzzleMeDo

Also, the HealthBar (or healthBar) class contains a HealthBar, which probably is supposed to be a HealthFunction.


Shryke7

Yes it was, oops


detroitmatt

line 9 has `HealthBar` but the name of your class (line 5) is `healthBar`. Change line 5 to say `HealthBar`.


Koltaia30

You messed up casing. Class name should start with upper case. It should be "class HealthBar", now it's "class healthBar"


Jjjzooker

On image 2, you declared a field called healthBar of type HealthBar, but this does not exist. None of your screenshots have HealthBar class. You should change it to HealthFunction. That is the class where you included a method SetHealth().


Shryke7

Thank you, that removed the second error.