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

2016/3/25

Need help making a shield energy bar.

Jalapena42 Jalapena42

2016/3/25

#
So i'm making a shield energy bar that has to decreases from 100 to 0 gradually, but when hit it loses 25 energy automatically. I have already made a graphic for the shield energy bar and was wondering if there was a way to make the image decrease in width by 1 instead of making 100 different variations of the same picture, each one pixel shorter than the last?
danpost danpost

2016/3/25

#
My Value Display Tutorial scenario has a page dealing with creating a non-textual representation of a value (a bar as well as a set of images). It contains code to programmatically create the images needed.
You need to login to post a reply.