Reply to Re: An issue with only Diag.
If you don't have an account, just leave the password field blank.
Here's one idea.
void main( void )
{
script_attach(1000);
int &dx;
int &dy;
int &ldx;
int &ldy;
loop:
&dx = sp_>
1, -1);
&dy = sp_y(1, -1);
if (&dx == &ldx)
&dy = &ldy;
if (&dy == &ldy)
&dx = &ldx;
sp_>
1, &dx);
sp_y(1, &dy);
wait(1);
&ldx = &dx;
&ldy = &dy;
goto loop;
}
But it look horrible and warps dink strangly if he try to walk off the screen in a cardinal dirction (i.e. not diagonal).
void main( void )
{
script_attach(1000);
int &dx;
int &dy;
int &ldx;
int &ldy;
loop:
&dx = sp_>
&dy = sp_y(1, -1);
if (&dx == &ldx)
&dy = &ldy;
if (&dy == &ldy)
&dx = &ldx;
sp_>
sp_y(1, &dy);
wait(1);
&ldx = &dx;
&ldy = &dy;
goto loop;
}
But it look horrible and warps dink strangly if he try to walk off the screen in a cardinal dirction (i.e. not diagonal).






