Reply to Re: Scripting and WDE questions.
If you don't have an account, just leave the password field blank.
Grr... Still can't get the blasted thing to work!
What am I doing wrong? This is what I have so far (incorporating Rabid's script):
void main( void )
{
int &xpos;
int &ypos;
int &cur_x;
int &cur_y;
int &isfrozen;
loop:
&isfrozen = sp_freeze(1, -1);
if (&isfrozen == 0)
{
&xpos = sp_x(1, -1);
&ypos = sp_y(1, -1);
wait(7000);
&cur_x = sp_x(1, -1);
&cur_y = sp_y(1, -1);
if (&cur_x == &xpos)
{
if (&cur_y == &ypos)
{
say_stop("It works!", 1);
}
}
}
goto loop;
}
I attach this to a sprite and test it on that screen but nothing happens. I thought that maybe during Dink's idle sequence his depth dot moves around so to test this I changed it all to ¤t_sprite but it made no difference.
What am I doing wrong? This is what I have so far (incorporating Rabid's script):
void main( void )
{
int &xpos;
int &ypos;
int &cur_x;
int &cur_y;
int &isfrozen;
loop:
&isfrozen = sp_freeze(1, -1);
if (&isfrozen == 0)
{
&xpos = sp_x(1, -1);
&ypos = sp_y(1, -1);
wait(7000);
&cur_x = sp_x(1, -1);
&cur_y = sp_y(1, -1);
if (&cur_x == &xpos)
{
if (&cur_y == &ypos)
{
say_stop("It works!", 1);
}
}
}
goto loop;
}
I attach this to a sprite and test it on that screen but nothing happens. I thought that maybe during Dink's idle sequence his depth dot moves around so to test this I changed it all to ¤t_sprite but it made no difference.