The Dink Network

Reply to Reviving a sprite

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
March 15th 2010, 12:22 PM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
I was wondering if there was a way to keep a sprite from dying in its die() procedure. Like, if I wanted a sprite to have a 50% to be restored to full health instead of dying. I've tried a simple sp_hitpoints(&current_sprite, 50); but that doesn't seem to be enough, the sprite still dies.

I assume it has to do with the fact that the sprite is actually already dead internally when the die procedure is called, but I distincly remember dmods having the kind of functionality I'm thinking of, I just can't remember which ones to take a peek.