The Dink Network

Reply to Re: Moving sprite damaging other sprites

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:
 
 
May 26th 2009, 05:12 PM
bonca.gif
Christiaan
Bard They/Them Netherlands
Lazy bum 
sp_my didn't do the trick, but sp_dir did!

The only thing that isn't working anymore is that I can't damage the missile by touching it. I know this sounds ridiculous, but I can't tell you what I'm working on yet. I just need to make it so when I touch the missile, it gets damage. With brain 10, I used to do this:

void touch (void)
{
hurt(&current_sprite, 100);
}

simple as that. Now it's a missile brain, I made this:

void touch (void)
{
sp_touch_damage(&current_sprite, -1);
sp_brain(&current_sprite, 10);
hurt(&current_sprite, 100);
}

However, it doesn't work: the missile sprite doesn't receive any damage. It does receive damage when I hit it however (which is good).

Anyone know how to fix this?