Page 1 of 1

void actor_to_screen(int *x, int *y)

PostPosted: Thu Jan 20, 2005 2:28 am
by Just4Fun
Is this the correct syntax for the script editor?

actor_to_screen(&xmouse, &ymouse) //convert mouse coordinates to screen coordinates.

What use would this have in a game or program?
TIA

PostPosted: Thu Jan 20, 2005 12:45 pm
by makslane
You can use screen_to_actor(&xmouse, &ymouse); to convert the mouse coordinates to the current actor coordinates. You can use this to draw in the right place in a canvas actor.

Use actor_to_screen to convert from actor coordinates to screen coordinates