The Dink Network

Reply to Re: Dead Dink - spike tiles

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:
 
 
December 4th 2009, 09:27 PM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
I don't think invisible sprites can do much else besides blocking (via hardness) and warping. Could be why touch damage (I assume that's what your using) doesn't work. Try this script.

void main ()
{
int &damage;
sp_nodraw(&current_sprite,1);
sp_nohit(&current_sprite,1);
sp_touch_damage(&current_sprite,-1);
}

void touch ()
{
sp_touch_damage(&current_sprite,0);
//damage him for everything he's got
&damage = &life;
&damage += &defense;
hurt(1,&damage);
//just incase he survives
&life = 0;
}