The Dink Network

Reply to Re: Local variable problem

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 6th 2009, 06:03 PM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
Sure, here's the full script.

void main (void)
{
int &stun = 0;
int &stunduration = 0;

checkstatus:

if (&stun == 1)
{

	if (&stunduration > 0)
	{
		freeze(&current_sprite);
		&stunduration -= 1;
	}
	else
	{
		&stun = 0;
		unfreeze(&current_sprite);
	}
}
wait(100);
goto checkstatus;

}

void hit (void)
{

	&stun = 1;
        &stunduration = 20;
	
}


It never even gets into the if (&stun == 1) part.