Reply to Re: Local variable problem
If you don't have an account, just leave the password field blank.
Sure, here's the full script.
It never even gets into the if (&stun == 1) part.
void main (void)
{
int &stun = 0;
int &stunduration = 0;
checkstatus:
if (&stun == 1)
{
if (&stunduration > 0)
{
freeze(¤t_sprite);
&stunduration -= 1;
}
else
{
&stun = 0;
unfreeze(¤t_sprite);
}
}
wait(100);
goto checkstatus;
}
void hit (void)
{
&stun = 1;
&stunduration = 20;
}
It never even gets into the if (&stun == 1) part.






