Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Need help in fighting game HP stopping at 0.
Old
everettphd
Junior Member
 
Status: Offline
Posts: 1
Join Date: Sep 2013
Default Need help in fighting game HP stopping at 0. - 12-11-2013, 02:05 PM

I cannot figure out how to make the HP stop at zero because it always continues to go into the negatives.
Anyone have any advice on how this can be done?

Please respond telling me how to do so or download the project file edit it for me and send it back on the forums or to my email at everettphd@gmail.com
Attached Files
File Type: a2w final project.a2w (3.49 MB, 5 views)
   
Reply With Quote
Old
fourbros
Senior Member
 
fourbros's Avatar
 
Status: Offline
Posts: 476
Join Date: Nov 2011
Location: Right Behind You...
Default 12-11-2013, 08:19 PM

I haven't downloaded the file but I'll try to help you anyway.

Create an "if else" statement.

Make it where if the hp is less than zero, set the counter back to zero (have it done at 0 seconds)

Hope I was able to help.


My avatar is from the anime "Hyouka".......

You've probably never seen it, much less heard of it.....

You should watch it........


print("Hello World")
This is python code.

Lakers > Clippers
Vikings > Packers
Cardinals > Brewers/Pirates/Cubs/Reds
   
Reply With Quote
Possible
Old
MrMoke
Senior Member
 
MrMoke's Avatar
 
Status: Offline
Posts: 501
Join Date: Sep 2007
Location: Austin, Texas
Default Possible - 12-12-2013, 08:27 AM

Didn't want to download it either.

Fourbros is right on!
Also try if (counter > 0), decrement counter. It can't get to -1 either.
Attached Files
File Type: a2w countdown.a2w (169.8 KB, 1 views)

Last edited by MrMoke; 12-13-2013 at 09:34 AM. Reason: I'm distracted:-)
   
Reply With Quote
Advice
Old
clk4suport
Junior Member
 
Status: Offline
Posts: 12
Join Date: Nov 2013
Location: new delhi
Default Advice - 12-23-2013, 12:46 AM

Hello Pal,

Sorry to hear this,,

Right now i don't have any kind of advice for you But later i will come with some very useful for you.

Thank You.
   
Reply With Quote
Reply

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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.