The Dink Network

Reply to Re: Scripting to talk to a duck on an island (Making script appear above the duck instead of the script obj)

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:
 
 
August 9th 2014, 06:45 PM
wizardg.gif
what you want to do is create a sprite and have the say() lines originate from the created sprite. So something like this...

void main(void)
{
int &duck = create_sprite(x coordinate, y coordinate, brain, sequence, frame);
}

void talk(void)
{
freeze(1);
say_stop("Hello duck", 1);
wait(200);
say_stop("`4QUACK YOU!", &duck);
unfreeze(1);
}

Does this help?