Alice Community  

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

Thread Tools Display Modes
I'm having some trouble
Posts: n/a
Default I'm having some trouble - 09-12-2010, 01:47 PM

in my fps game, i'm having some trouble getting my bullet to inflict damage on my enemy's causing the life bar to shrink. - which in turn would make the enemy die and fade away.

how would i be able to make this work?
(coding preferably)

Last edited by Ezra98; 09-12-2010 at 02:22 PM.
Reply With Quote
Senior Member
debussybunny563's Avatar
Status: Offline
Posts: 852
Join Date: May 2010
Arrow 09-12-2010, 06:07 PM

Here's how to make bullet collision: Bullet Collision, by MEEE!!!!

Make a variable called "enemyHealth," and set it to however much health you want the enemy to have. Make it so that if the enemy is hit (with the collision method shown in the above link), <enemyHealth> set value to <enemyHealth> - <1> (or however much damage you want it to be)
Then, have a When (<health> = <0>) becomes true, do <enemyDie>.

For making a health bar, reference this: 4 ways to count health

Anyway, if you would upload the world, I can try to implement all of these for you.

Last edited by debussybunny563; 12-21-2012 at 12:00 AM.

|Link to weapons collection: |

I have been dead for quite some time now; not much hope for resurrection.
Reply With Quote

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.