The Dink Network

Reply to Re: Touching!

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:
 
 
March 25th 2008, 09:03 PM
bonca.gif
Christiaan
Bard They/Them Netherlands
Lazy bum 
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?