Page 1 of 1

actor_to_screen

PostPosted: Fri Jun 20, 2008 8:58 pm
by DST
How are we supposed to use this?

The function requires intx, inty, and won't allow me to use doubleintx, or doubleinty.

An actor's coordinate are double ints. So what is actor_to_screen for?

Re: actor_to_screen

PostPosted: Fri Jun 20, 2008 10:00 pm
by makslane
This function is just to reverse the transformation done by the screen_to_actor function.
I'm not sure if is a useful function!

If you need the actor coordinates relative to screen, use the xscreen and yscreen actor variables.

Re: actor_to_screen

PostPosted: Fri Jun 20, 2008 10:10 pm
by DST
No, that makes sense, to reverse them in the same event that they were switched in the first time.

Thanks!