The Dink Network

Reply to Re: I need some help, guys

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 23rd 2009, 07:44 AM
dinkdead.gif
I would say just put a 10 second loop in, but it'll probably leave the loop whenever the hit procedure is run... hmm.

Only way I can think of offhand is to have the loop in a seperate script, but that could get messy if you have more than one of these ducks on the screen.

Edit: Or it might work to have the loop in duckstuff.c and use external instead of spawn, then you can use &current_sprite to control the duck and there'll be no problems with more than one. Hopefully.

//the duck
void main (void)
{
  //blah blah
  external("duckstuff", "main");
}

//duckstuff.c
void main (void)
{
loop:
  wait(10000);
  //whatever happens... use &current_sprite
  goto loop;
}