Lets say i have 2 sprite's each of them have a hp bar
<img src="http://img12.imageshack.us/img12/6271/2ghosts.jpg" border="0" />
If i click on one of it that one must lose 10 hp, And if it it's hp is down to 0 it has to be destroyed
So.. Here is the thing I am struggling with
when i click on one of them both of them loses 10 hp
(how do i make it so if i click on one, it lose 10 hp and only shows at the clicked one's Hp Bar)
When there is one ghost with 0 hp they both are destroyed
(How do i make it so, If it ceep on clicking on one and his hp drains to 0 it only destroys the one that was clicked)
Can anyone help me fast pls!
Any *.cap file will help much