Alice Community  

Go Back   Alice Community > Alice 2 > Share Objects

Reply
 
Thread Tools Display Modes
Health Bars!
Old
zero00
Senior Member
 
zero00's Avatar
 
Status: Offline
Posts: 300
Join Date: Oct 2009
Talking Health Bars! - 06-07-2011, 01:07 AM

Update: The finished health bars are on post #15
Feel free to read this, though

This was an experiment that had defeated me every time I tried it...but now...

I have figured out how to get health bars to work in Alice worlds (for the most part)!

I don't mean the kind of "health bars" made of a bunch of individual squares or what-have-you. I mean the 2D kind, similar to ones you would see in games like Street Fighter and the like.

I haven't fully figured out the secret to this, but progress is being made very quickly!

Here are my experiments. Feel free to learn from them or use them however you want.

"true_healthbar_exper.a2w" was my latest experiment that I used to figure this out! It's also kind of broken and slightly confusing, but it has some of basic functions for the healthbars to work. "HUD_experiments.a2w" uses healthbars in a game-like environment!
Attached Images
File Type: jpg capture20.jpg (16.6 KB, 143 views)
File Type: jpg capture19.jpg (17.5 KB, 139 views)
Attached Files
File Type: a2w HUD_experiments.a2w (6.22 MB, 60 views)
File Type: a2w true_healthbar_exper.a2w (721.5 KB, 61 views)


==============Some of my Games and Ideas===========

Sky Warrior: http://www.alice.org/community/showthread.php?t=6291
Health Bars: http://www.alice.org/community/showthread.php?p=36968#post36968
Sky Warrior: Dual Force: http://www.alice.org/community/showthread.php?t=7174

Want to make your own space game? http://www.alice.org/community/showthread.php?t=6389

Last edited by zero00; 06-08-2011 at 02:52 AM.
   
Reply With Quote
Old
David B
Senior Member
 
David B's Avatar
 
Status: Offline
Posts: 1,145
Join Date: Dec 2010
Location: N/A
Default 06-07-2011, 05:51 AM

Cool! Nice job! These would make great examples for someone who needs help with healthbars!
   
Reply With Quote
Old
zero00
Senior Member
 
zero00's Avatar
 
Status: Offline
Posts: 300
Join Date: Oct 2009
Default 06-07-2011, 07:15 AM

Thanks!
BTW, the math for getting these things to work is really confusing. :P


==============Some of my Games and Ideas===========

Sky Warrior: http://www.alice.org/community/showthread.php?t=6291
Health Bars: http://www.alice.org/community/showthread.php?p=36968#post36968
Sky Warrior: Dual Force: http://www.alice.org/community/showthread.php?t=7174

Want to make your own space game? http://www.alice.org/community/showthread.php?t=6389
   
Reply With Quote
Old
David B
Senior Member
 
David B's Avatar
 
Status: Offline
Posts: 1,145
Join Date: Dec 2010
Location: N/A
Default 06-07-2011, 12:41 PM

Quote:
Originally Posted by zero00 View Post
Thanks!
BTW, the math for getting these things to work is really confusing. :P
I agree! My health bars never turn out that good!

Click here to download my health bar.
   
Reply With Quote
Making Progress...
Old
zero00
Senior Member
 
zero00's Avatar
 
Status: Offline
Posts: 300
Join Date: Oct 2009
Smile Making Progress... - 06-07-2011, 02:50 PM

Update:
The health bars are coming along nicely, though they are still confusing...

This is Experiment 2. Shoot the sphere (with the space bar) and the bar decreases accordingly. Press Enter to restore the sphere's health.

There's still a few things to figure out like what the bar will do when the enemy's health is fully depleted...
Attached Files
File Type: a2w HUD_experiments_2.a2w (6.26 MB, 3 views)


==============Some of my Games and Ideas===========

Sky Warrior: http://www.alice.org/community/showthread.php?t=6291
Health Bars: http://www.alice.org/community/showthread.php?p=36968#post36968
Sky Warrior: Dual Force: http://www.alice.org/community/showthread.php?t=7174

Want to make your own space game? http://www.alice.org/community/showthread.php?t=6389
   
Reply With Quote
Old
David B
Senior Member
 
David B's Avatar
 
Status: Offline
Posts: 1,145
Join Date: Dec 2010
Location: N/A
Default 06-07-2011, 03:12 PM

Quote:
Originally Posted by zero00 View Post
Update:
The health bars are coming along nicely, though they are still confusing...

This is Experiment 2. Shoot the sphere (with the space bar) and the bar decreases accordingly. Press Enter to restore the sphere's health.

There's still a few things to figure out like what the bar will do when the enemy's health is fully depleted...
This one is even better than the first one! Nice job!
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 06-07-2011, 03:41 PM

I thought about making a health bar like this, but was always to lazy to do it. Cool! Now I see what it looks like!


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
New and improved!
Old
zero00
Senior Member
 
zero00's Avatar
 
Status: Offline
Posts: 300
Join Date: Oct 2009
Default New and improved! - 06-07-2011, 08:46 PM

I think I've found the formula to resize the health bars!
It works much more reliably now!
Still need to figure what to do when it hits zero...

Here's the results:
Attached Files
File Type: a2w HUD_experiment_IV.a2w (6.27 MB, 5 views)


==============Some of my Games and Ideas===========

Sky Warrior: http://www.alice.org/community/showthread.php?t=6291
Health Bars: http://www.alice.org/community/showthread.php?p=36968#post36968
Sky Warrior: Dual Force: http://www.alice.org/community/showthread.php?t=7174

Want to make your own space game? http://www.alice.org/community/showthread.php?t=6389
   
Reply With Quote
Could this be....
Old
zero00
Senior Member
 
zero00's Avatar
 
Status: Offline
Posts: 300
Join Date: Oct 2009
Talking Could this be.... - 06-07-2011, 09:12 PM

I think the Health bar is pretty much done now!

====Changes===================
You can now heal by any amount now!
Damage can go below zero, like "-8", but only once
=============================

Here is the pretty-much finished healthbar!
I'll work on a more easy-to-use version, soon.
Attached Files
File Type: a2w HUD_experiment_V.a2w (6.25 MB, 8 views)


==============Some of my Games and Ideas===========

Sky Warrior: http://www.alice.org/community/showthread.php?t=6291
Health Bars: http://www.alice.org/community/showthread.php?p=36968#post36968
Sky Warrior: Dual Force: http://www.alice.org/community/showthread.php?t=7174

Want to make your own space game? http://www.alice.org/community/showthread.php?t=6389
   
Reply With Quote
Old
Mr Kidnapper
Senior Member
 
Status: Offline
Posts: 442
Join Date: Feb 2011
Default 06-07-2011, 09:20 PM

I always thought to abuse transparency glitches to make partial objects, at least from the view of the camera. But then until today I didn't know there was a resize variable to change an object height or width-wise. Found out from that one recoil world. :| How annoying.
How about a separate event that detects if it is less than 0, and sets it to 0?
But what I don't understand is what's wrong if it goes negative. Why is it bad? I let it damage deep into the negatives with multiple hits and nothing bad particularly happens.
Ha. Now all people need to do is design armor points and how it will affect damage.

Last edited by Mr Kidnapper; 06-07-2011 at 09:34 PM.
   
Reply With Quote
Reply

Tags
bar, health points time gauge

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2021, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.