Event on, when chars close

Started by Blitzerland, Wed 20/07/2005 02:02:43

Previous topic - Next topic

Blitzerland

Question One:

How can I make something happen when two characters get within a certain range of eachother?

Forget the second question. Idiot that I am, I fixed the problem seconds after posting this.

Theme

if ( ((character.x - otherchara.x) <= range && (character.x - otherchara.x) >= -range) || ((character.y - otherchara.y) <= range && (character.y - otherchara.y) >= -range) )
{
do stuff here...
}


i dunno if this works... put in repeatdly executed in the room script

o/

SMF spam blocked by CleanTalk