Alice Community  

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

Reply
 
Thread Tools Display Modes
NEED HELP PLEASE to make zombies attack player and lower his health!
Old
puzzlemenow
Junior Member
 
Status: Offline
Posts: 2
Join Date: May 2012
Location: canada
Default NEED HELP PLEASE to make zombies attack player and lower his health! - 05-21-2012, 04:38 PM

hi, i am trying to make a game where at one point you will encounter zombies and skeletons. i want the player to be able to kill them. however at the same time i need help on how to make the zombies/skeletons attack the player and when they do hit the player, lower his health bar.

thanks so much!

here is my game if u need to look at it.
Attached Files
File Type: a2w alice 10101010110.a2w (13.76 MB, 17 views)
   
Reply With Quote
Old
dakota95
Senior Member
 
dakota95's Avatar
 
Status: Offline
Posts: 426
Join Date: Aug 2011
Location: like I would tell you. ;)
Default 05-25-2012, 01:01 PM

lowering the health bar is pretty simple. You just have to make a # variable and then make if so that if the zombies are within 1 meter of person decrement health variable by 1.


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