The Dink Network

Reply to Re: Need help with a duck script

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:
 
 
September 14th 2007, 09:40 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
Well, I think the easiest way to do it is this:
Duck script:

void main(void)
{
int &speed = 1;
sp_speed(&current_sprite,&speed);
}
void hit(void)
{
&speed += 1;
if (&speed <= 5)
{
sp_speed(&current_sprite,&speed);
}
if (&speed >= 6)
{
freeze(1);
set_smooth_follow(1);
//set_smooth_follow isn't neccessary,
//but it might make it look more pretty.
sp_follow(1,&current_sprite);
//Move around the duck as much as you want here
unfreeze(1);
}
}