The Dink Network

Reply to Re: they attack eachother to

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:
 
 
July 22nd 2006, 07:09 AM
custom_fish.png
SabreTrout
Noble He/Him United Kingdom
Tigertigertiger. 
Delete the sp_target line. This causes the sprite the script is attached to (&current_sprite) to target whatever has attacked it (&enemy_sprite).

void hit( void )
{
playsound(58, 22050,0,&current_sprite, 0);

sp_target(&current_sprite, &enemy_sprite);
//lock on to the guy who just hit us
//playsound

}