The Dink Network

Reply to Re: An issue with only Diag.

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 31st 2002, 03:21 PM
wizardg.gif
Paul
Peasant He/Him United States
 
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).