The Dink Network

Reply to Re: problems with move() and wait()

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:
 
 
November 1st 2010, 04:46 PM
custom_iplaydink.gif
iplaydink
Peasant He/Him Sweden
Hmm.. 
What actually happens? Does the game crash or something?
I assume that you've tried increasing the wait?

Anyway it might be a good idea to do something like this:
move(1, 4, 0, 0);

loop:

&dinkx = sp_x(1, -1);
wait(10);
&dinkx2 = sp_x(1, -1);

if (&dinkx != &dinkx2)
{
goto loop;
}

&dinkxy2 += 5;
move(1, 6, &dinkxy2, 0);
sp_dir(1, 4);
//Otherwise dinks actual  x coordinate could be less
//Than dinkxy2 even though you force him to walk in  direction 4
//to that location, So he tries to go forward backwards, you get it? 
//it could screw things up...


EDIT: It's a very clever script if you get it to work! I remember trying something like that for three amulets but I never figured out a way to stop the sprite... But I was a really bad scripter back then...