1 decade ago by ShawnSwander
So I was thinking of putting a red rectangle behind my glass health bar (above the number 100 on the right hand side. so you see through it and the effect is like its holding red fluid. I don't see a reason to make a new entity using up resources. How can I make a simple rectangle there? or does anyone have a better suggestion? The draw function seemed unusually long.
1 decade ago by Graphikos
I think drawing with fillRect() then overlaying the glass image is a perfect solution. Placing it all in an entity wouldn't be a bad thing either, it would keep it nice and self contained.
There are a few examples I've written up for "health bars". Nothing as specific has what you are looking for but probably close enough to give you some ideas.
Here is a health bar using a filled rect in an entity.
http://impactjs.com/forums/help/how-to-place-mini-health-bars-on-enemies-level-editor-confusion
There are a few examples I've written up for "health bars". Nothing as specific has what you are looking for but probably close enough to give you some ideas.
Here is a health bar using a filled rect in an entity.
http://impactjs.com/forums/help/how-to-place-mini-health-bars-on-enemies-level-editor-confusion
Page 1 of 1
« first
« previous
next ›
last »