Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   NEED HELP PLEASE to make zombies attack player and lower his health! (http://www.alice.org/community/showthread.php?t=8543)

puzzlemenow 05-21-2012 03:38 PM

NEED HELP PLEASE to make zombies attack player and lower his health!
 
1 Attachment(s)
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.

dakota95 05-25-2012 12: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.


All times are GMT -5. The time now is 03:07 PM.

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