by pixelpoop » Thu Aug 02, 2007 10:38 am
it looks like this: distance( x, y, x, y);
You could use it on a key down event to create a text actor, something like this:
if ( distance(player.x, player.y, character_01.x, character_01.y)<30){
CreateActor("text_box", "script_01", "view", "(none)", 0, 0, true);}
it reads, if the the distance between player and character_01 is less than 30 pixels then create actor text_box and goto the animation script_01.