health bar

Get help using Construct 2

Post » Thu Aug 01, 2013 2:11 pm

hi ,

i need some suggesstions. actually i have one health-bar , for that health bar i'm having 3 colors for that health bar .when i'm trying to health bar ,it is compressing but it is not decreasing image wise . can any one explain me please


https://www.dropbox.com/s/y5rg8dl8b1yjr1j/health_image.jpg
B
4
Posts: 19
Reputation: 238

Post » Thu Aug 01, 2013 2:21 pm

Can you post the .capx? I have a hard time understanding what you mean. =3 You can PM it to me aswell if you like.
B
11
S
2
G
4
Posts: 78
Reputation: 3,292

Post » Thu Aug 01, 2013 2:46 pm

yeah sure


https://www.dropbox.com/s/0ihbia81ui5nmyi/shieldbar.capx
B
4
Posts: 19
Reputation: 238

Post » Thu Aug 01, 2013 3:16 pm

I just added a damage sprite, so damage goes <- and covers the health. Using health sprite width will just shrink it. You need to cover it with something to make it appear like it is decreasing.
Very raw, but you get the idea see below.
https://www.dropbox.com/s/bgwnnjgewozaw99/shieldbar.capx
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
63
S
16
G
9
Posts: 1,429
Reputation: 12,623

Post » Thu Aug 01, 2013 4:46 pm

@nar

If you need to crop part of image without compressing it, you should use Tiled Background instead if Sprite.

Here is an example: healthbar.capxVladoss2013-08-01 16:47:01
B
39
S
16
G
6
Posts: 238
Reputation: 7,875

Post » Fri Aug 02, 2013 8:45 am

hi @Vladoss

i have tried like as you, i have add another image of yours, but for me it's coming like you. if any where i did mistake just help to find out that issue please
B
4
Posts: 19
Reputation: 238

Post » Fri Aug 02, 2013 9:22 am

[QUOTE=nar] hi @Vladoss

i have tried like as you, i have add another image of yours, but for me it's coming like you. if any where i did mistake just help to find out that issue please[/QUOTE]

Show me your .capx
B
39
S
16
G
6
Posts: 238
Reputation: 7,875

Post » Fri Aug 02, 2013 10:01 am

https://www.dropbox.com/s/re5893pqobx9y3n/healbar.capx

can any one help me pleasenar2013-08-03 06:41:10
B
4
Posts: 19
Reputation: 238

Post » Sat Aug 03, 2013 8:09 am

thanks Got it, working fine
B
4
Posts: 19
Reputation: 238


Return to How do I....?

Who is online

Users browsing this forum: Kenthria, Maako, NN81 and 11 guests