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

2020/5/15

how to make a health bar?

Weeb2.exe Weeb2.exe

2020/5/15

#
sorry last one as stated above i don't know how to. im trying something like this
public class PlayerHealthBar extends Actor
{
    /**
     * Act - do whatever the PlayerHealthBar wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public void act() 
    {
        Betty player = (Betty)lives();
        if (player) lives() = 5;
    }    
}
danpost danpost

2020/5/15

#
Please refer to my Value Display Tutorial scenario.
Weeb2.exe Weeb2.exe

2020/5/16

#
i have my own images for it does that work or do i forget it?
danpost danpost

2020/5/16

#
Weeb2.exe wrote...
i have my own images for it does that work or do i forget it?
You can use your images. The tutorial will show the basic requirements and how to arrange them.
Weeb2.exe Weeb2.exe

2020/5/17

#
ok thanks
You need to login to post a reply.