Page 1 of 1

Diablo-style HP Globe UI

PostPosted: Mon Apr 22, 2013 8:51 am
by kristalize
Hi Guys,

I've been searching around the forum for various masking possibility but has not yet come to find the right solution for what I want to do.

Basically, I would like to make a Globe UI element that is able to reflect a HP variable in my game, sorta like the HP globe in Diablo. Is there like a shape mask function that I can make a square sprite with a circle shape so I can just adjust the height of my square sprite to achieve the globe UI ?

Hope to know if this is already done somewhere or is it even possible in Construct 2 ?

Re: Diablo-style HP Globe UI

PostPosted: Mon Apr 22, 2013 10:52 am
by spongehammer
@kristalize

you could just create an animation with and set the frame to reflect yout HP variable.

Re: Diablo-style HP Globe UI

PostPosted: Mon Apr 22, 2013 11:31 am
by Yann
You didn't really search, did you? (:

heartHUD.capx
simpleHPBar.capx
reallySimpleHPBar.capx

Re: Diablo-style HP Globe UI

PostPosted: Mon Apr 22, 2013 3:23 pm
by newt
That last one isn't working right @Yann.

Here's one using tiled bg: link

Also @Ashley think we could get a few more hot spot settings for tiled bg?
Rotating the angle seems kind of silly.

Re: Diablo-style HP Globe UI

PostPosted: Mon Apr 22, 2013 4:49 pm
by Yann
@newt

Thanks somehow the texture got renamed into hpBar.png.rename ... weird... maybe it's a bug but I wouldn't know how to reproduce it.Yann2013-04-22 16:49:44

Re: Diablo-style HP Globe UI

PostPosted: Tue Apr 23, 2013 7:45 am
by kristalize
I was searching on methods for masking, then i found things like collision mask and some color masking plugins... guess i didn't search the correct keywords. :P

but thanks all, its been a great help !! i have never used the blending mode effects in Construct2 before.. learn something new to play around with! kristalize2013-04-23 07:50:51