Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Arjunaz78 on Sun 09/10/2011 19:14:31

Title: X,Y Co-ordinate [SOLVED]
Post by: Arjunaz78 on Sun 09/10/2011 19:14:31
I've got confuse when setting up the character X,Y positing on room,i don't know which one i must set up whether the character properties option,room option,scripting option or both or multiple of them,because i got confuse when changing the character properties on X,Y position because it will ignore the X,Y coordinate that i've been already set in room using Changeroom(int room,x,y) function..besides i already confusing with X,Y co-ordinate when setting up the bottom left to bottom right position & top left to top right position or otherwise..

Anyone can give me the trails or illustration of X,Y graph by graphical?

p.s - Sorry..I'm weak on maths,plus in scripting coding too..pal..
Title: Re: X,Y Co-ordinate
Post by: Khris on Sun 09/10/2011 19:20:25
Not entirely sure what you're asking here.

(0; 0)                             (319;0)





(0; 239)                          (319; 239)


These are the coordinates of the corner pixels in a 320x240 room.
Title: Re: X,Y Co-ordinate
Post by: on Sun 09/10/2011 19:23:14
when you are in the AGS room editor, above the background you will notice "Mouse Position:".
Mouse Position represents x and y coordinates of your mouse cursor on that background. So if you want to set your character on X coordinate put you mouse cursor on the desired X coordinate and it will show up in Mouse Position.

So...

Mouse Position: X,Y

X are horizontal lines
Y are vertical lines
X gets decreases to the left
Y gets decreases to the up