Alice Community  

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

Reply
 
Thread Tools Display Modes
Scoring/Health bar issue
Old
Mister Kaseijin
Junior Member
 
Status: Offline
Posts: 1
Join Date: Apr 2012
Default Scoring/Health bar issue - 05-06-2012, 05:10 PM

For my final project I'm making a simple game, there's a dragon flying back and forth across the top of the screen and a slingshot on the bottom of the screen. When you click the slingshot it sends a sphere strait up, you have to time it right to hit the dragon which will make it's health bar go down slightly. That's where I need help.

I'm using the same basic scoring system used for the Wack-A-Mole game from chapter 9 in the book. What should happen is when the bar is below the ground, the dragon should (for now) stop flying back and forth. However nothing happens when the health bar is below the ground.

Here's the game so far. Any help would be appreciated!
Attached Files
File Type: a2w Final Project.a2w (2.93 MB, 12 views)
   
Reply With Quote
Old
xela10104
Junior Member
 
Status: Offline
Posts: 7
Join Date: Feb 2012
Default 05-07-2012, 12:03 AM

I'll take a look at it and try to help out
   
Reply With Quote
Old
xela10104
Junior Member
 
Status: Offline
Posts: 7
Join Date: Feb 2012
Default 05-07-2012, 12:08 AM

try setting a value to the dragons health and have each hit deplete that value. When the value hits zero have the dragon stop.
   
Reply With Quote
Reply


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.