This site requires JavaScript, please enable it in your browser!
Greenfoot back
Randalini
Randalini wrote ...

2017/5/8

health bar and game over

Randalini Randalini

2017/5/8

#
I need some help for programming a health bar and a game over screen. I need a health bar for my player and one formy enemy which regenerates 1/10 if he eats. The game over bar should appear when the heart bar is on 0 Thx ^^
danpost danpost

2017/5/8

#
Randalini wrote...
I need some help for programming a health bar and a game over screen. I need a health bar for my player and one for my enemy which regenerates 1/10 if he eats. The game over bar should appear when the heart bar is on 0 Thx ^^
My Value Display Tutorial explains how to create usable health bars and heart bars. The game over screen can be just a separate World subclass that is instantiated and activated when needed.
You need to login to post a reply.