actor_to_screen

Non-platform specific questions.

actor_to_screen

Postby DST » Fri Jun 20, 2008 8:58 pm

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?
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

Re: actor_to_screen

Postby makslane » Fri Jun 20, 2008 10:00 pm

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.
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Re: actor_to_screen

Postby DST » Fri Jun 20, 2008 10:10 pm

No, that makes sense, to reverse them in the same event that they were switched in the first time.

Thanks!
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron