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

2014/2/9

Greenfoot game help

hollygolightly hollygolightly

2014/2/9

#
I've seen different discussions and videos but I can't seem to work it out How do I make a simple health bar? The goal of the game is for the character to "eat" all the cameras so our code is simply " if(canSee(camera.class)) { eat(camera.class); } " but how will I make a health bar for everytime it eats the camera? (the health bar is something like a progress bar)
danpost danpost

2014/2/9

#
There really is no simple healthbar. The best I could come up with is an Actor class of about 45 lines, where the main bulk of the code was for creating the image to display (lots of image creation/filling/drawing).
You need to login to post a reply.