The Dink Network

Reply to Re: how do i make the scrip to show just one time

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:
 
 
October 27th 2009, 12:46 PM
duck.gif
wesley
Peasant He/Him United States
 
I prefer to do the following. This saves you from using a global variable.

I've been away from scripting for a bit so excuse me if the syntax is a bit wrong.

void main(void)
//get the "state" of this sprite. It can be an invisible sprite. You
int &state = editor_seq(&current_sprite, -1);

if(&state == 0)
{
//do stuff
...

//set the "state" to something other than 0
editor_seq(&current_sprite, 1);
}
}