Reply to Re: Touching!
If you don't have an account, just leave the password field blank.
Thanks, but I still don't quite get it... Let's say you have 2 scripts, one for a rock, with a "box" around it.
Would that script look like your script, so like this?
void main (void)
{
loop:
wait(100);
int &x = sp_x(&sprite, -1);
int &y = sp_y(&sprite, -1);
int &box = inside_box(&x, &y, 380, 175, 515, 220);
//left, right etc set as touch area
if (&box)
{
say("hey", 1);
}
goto loop;
}
And the other script, for Lyna, when she enters the box, something happens. How would that script look like?
Would that script look like your script, so like this?
void main (void)
{
loop:
wait(100);
int &x = sp_x(&sprite, -1);
int &y = sp_y(&sprite, -1);
int &box = inside_box(&x, &y, 380, 175, 515, 220);
//left, right etc set as touch area
if (&box)
{
say("hey", 1);
}
goto loop;
}
And the other script, for Lyna, when she enters the box, something happens. How would that script look like?






