The Dink Network

Reply to Attacking 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:
 
 
February 13th 2003, 01:09 PM
pq_frog.gif
Ric
Peasant They/Them Canada
 
Im making the spike sprite fight for dink. I got it chasing other sprites having brain 9, but it does no damage;
sp_brain(&current_sprite,9);
sp_strength(&current_sprite,7);
sp_nohit(&current_sprite, 0);
sp_distance(&current_sprite, 40);
sp_speed(&current_sprite,1);
sp_touch_damage(&current_sprite,7);
int &mtarget = get_sprite_with_this_brain(9, &current_sprite);
if (&mtarget > 0)
{
sp_target(&current_sprite, &mtarget);
}
// I'm not even sure what sp_nohit does, but it didn't work with or without it. Any clues how to make it damage other sprites? Does it need an attack seq ?