Help Me (Enemy Logic)

How can I make moving enemy?
The enemy has 3 hit points and after got hit
the part of body get saperated from the body
I watched all youtube movies so I know basics
please upload link, example templete or comment
thank you very much!
Comments
http://forums.gamesalad.com/discussion/36833/please-help-making-moving-zombie-or-enemy-with-physics-effect#Item_1
Like ultima said youll have to constrain actors to do this exactly how you want, but you wont be able to do it with a ton of enemies at the same time and have it run good.
This way is showing 'dying animation (the thing in Metal Slug)
The thing I wanna do is
The damage with physics effect applied
rather than showing dying animation
the stronger bullet shot is, the farther head flies (Most zombies in current apps market)
JOHN -> OK, how can I delete previous thread?
there was no comment and the thread was disappeared
sorry about it
For your question you can try turning off the constrains on the part thats hit on impact and have it collide with the bullet, that will have the pieces move farther depending on force, the problem might be when the constrains turn off though it might get buggy. And like i said above you wont be able to do this to a bunch of enemies at the same time without it killing performance.
so conclusion is
the best way for enemy is just showing animation, right?
(walking, dead, bleeding)
actually the thing I wanna do is physics applied enemy.
it's kinda challenging for me :b
So in the enemy - if collides with bullet and
----if game.bulletY (you'd need to create this and constrain it to the bullet's Y) is greater than self.positionY + (self.height/4) change self.health to self.health - 10 (this would be your headshot)
Otherwise if game.bulletY is greater than self.positionY change self.health to self.health -5 (body shot)
-----------otherwise if game.bulletY is less than self.positionY change self.health to self.health -2 (leg shot)
You could also put a different animation in each section of these rules.
Hope this helps.