void actor_to_screen(int *x, int *y)

Non-platform specific questions.

void actor_to_screen(int *x, int *y)

Postby Just4Fun » Thu Jan 20, 2005 2:28 am

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
I've learned that I still have a lot to learn.

** Makslane == Genious **
Just4Fun
 
Posts: 524
Joined: Tue Jul 01, 2003 5:19 am
Location: USA: Washington State; West Coast
Score: 6 Give a positive score

Postby makslane » Thu Jan 20, 2005 12:45 pm

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
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest