by Hblade » Fri Dec 08, 2006 11:50 pm
Right when you make an HP bar image, such as a simple image that has a certian width or height, you can edit the Collission effect to where when it hit's the player, then the bar's width or height is reduced to a certian ammount. In other words, you can make this like this. Collission, Gun Bullet, Any side of player, Script editor. In the script editor, put width = width - 1;
Immidiat Action, then test it out, Immidiat action is shown when you click on the Add Event, just incase you forget. Oh! and one more thing, edit the HP Bar Image in draw actor, then put this script in it. if (HP Bar >=0)
{
DestroyActor("Player");
}
Ok, your good to go.
Subscribe to my YouTube? -
Yes| No