Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Kinoko on Sat 28/01/2006 06:51:53

Title: Character screen coordinates (SOLVED)
Post by: Kinoko on Sat 28/01/2006 06:51:53
Is there some way I can get the current screen coordinates of a character? It'd be handy if I could use this with CreateOverlay
Title: Re: Character screen coordinates
Post by: Gregjazz on Sat 28/01/2006 07:06:22
Yes, you have to use these to find the character's position relative to screen coordinates:

character[EGO].x - GetViewportX()
character[EGO].y - GetViewportY()
Title: Re: Character screen coordinates
Post by: Kinoko on Sat 28/01/2006 07:33:14
Thanks ^_^