Help with 19. How to make a 2D Platformer – ENEMY GUI – health bar won’t change

Updated on January 11, 2017 in [A] Brackeys Courses
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
1 on January 9, 2017

Hi guys!

So I managed to successfully  complete this tutorial, everything was ok. I had an issue with a virtual machine and my PC glitched and Unity along with a few other program got shut down.

Went back into Unity and the healthbar doesn’t change now. The issue is that i can’t attach the StatusIndicator script intro the Enemy scripit in Unity. I can’t drag it there. I rechecked the video and my code and nothing has changed. I really have no idea why this is happening.

Does anybody have any idea what I should do?

  • Liked by
0 on January 11, 2017

Did you try to add the StatusIndicator script using Add Component button? Just type in the name of the script in the Add Component dialog. If that doesn’t work you probably need to make a new script, and probably using a different class name.

  • Liked by