Diablo-style HP Globe UI

Get help using Construct 2

Post » Mon Apr 22, 2013 8:51 am

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 ?
B
4
Posts: 5
Reputation: 735

Post » Mon Apr 22, 2013 10:52 am

@kristalize

you could just create an animation with and set the frame to reflect yout HP variable.
B
44
S
15
G
9
Posts: 1,096
Reputation: 11,013

Post » Mon Apr 22, 2013 11:31 am

You didn't really search, did you? (:

heartHUD.capx
simpleHPBar.capx
reallySimpleHPBar.capx
Last edited by Yann on Sun Sep 14, 2014 7:21 pm, edited 1 time in total.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Mon Apr 22, 2013 3:23 pm

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.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Mon Apr 22, 2013 4:49 pm

@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
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Tue Apr 23, 2013 7:45 am

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
B
4
Posts: 5
Reputation: 735


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, armaldio, plinkie and 19 guests