Is it possible to make a custom shape health bar?
nati22
Member Posts: 11
I found numerous videos and discussions about health bars, but all seemed to use a simple rectangle shape. Would it be possible to make the health bar for example a circle that fills up?
Comments
One way would be to create a 100 images and have the images change based on the percentage of the health.
Another way would be to create an image with a transparent circle with a solid border and have a square behind the circle image that changes height based on the percentage of the health. You will need to make sure that your health circle image has a border that covers the square so that the player only sees what's inside the circle.
If my instruction wasn't clear I've created two images to show what I mean.
This shows the two actors together to create the health bar
This shows the two actors split apart to show how they look
You will need to make sure that your border fits in with the rest of your game design
These ideas might help:
http://forums.gamesalad.com/discussion/87052/circular-power-meter-bar
I've found a third way although I don't know what it will look like with images. I tried it with solid colour actors
Keep in mind that any actors underneath the red actor will show part of the red actor on top of them. If you can place your health bar at the back of the scene and know nothing will ever cover it then this might be an easier option.
This is how it looks in the scene
And this is how it looks once the game is running
If you're looking for rounded edges, there's a template for that on my site. If you're looking for circular, that's already well covered
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Another couple of possible solutions (attached)
A circle fill based on maths, and a power meter (click in the white square and drag), might be something worth extracting from them ?
@Socks, the circular drag meter is very nice, pretty special effect too...
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Cheers, it would be good for powering up a shot before releasing it, but you could also convert it daily easily to a health bar / meter.
I had a fun time trying to figure this out a while back: http://forums.gamesalad.com/discussion/90653/analog-clock-timer-demo/p1
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Yeah here's mine!
http://gshelper.com/shop/gamesalad-templates/super-stickman-golf/
I keep meaning to get that template for a game idea I've had! I made a golf game but can't get the shot direction and power to work too well so just want to use yours