Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Ghostlady on Sun 08/03/2009 21:28:58

Title: Object move going off the edge
Post by: Ghostlady on Sun 08/03/2009 21:28:58
I am trying to move an object to specific coordinates and instead of stopping where it is supposed to, it seems as if it is falling off the bottom edge.  What am I doing wrong?  It is first person so I am not using any walkable areas.

object[0].Move(214, 364, 10, eBlock,  eAnywhere);
Title: Re: Object move going off the edge
Post by: Makeout Patrol on Sun 08/03/2009 23:11:53
Is your game in 320x200? Because if it is, the co-ordinates that you have specified are beyond the edge of the room. It is doing exactly what you are telling it to do; you've probably just put the wrong co-ordinates to move to.

EDIT: This might even be the problem if you're using a larger resolution but you haven't set up the game properly. I know older versions of AGS still use 320x200 for game co-ordinates, even though it's showing a larger number of pixels than that in higher resolution modes. I'm also pretty sure that there's a setting to keep that type of behaviour somewhere, but I don't have the manual handy so I can't be sure.
Title: Re: Object move going off the edge
Post by: Ghostlady on Mon 09/03/2009 01:32:04
You are right.  I divided the co-ordinates in half and it worked correctly.  My game is 640 x 480 though.  ???
Title: Re: Object move going off the edge
Post by: Trent R on Mon 09/03/2009 01:45:15
See 'Use low-resolution co-ordinates in script' under the general settings. Read the 'Upgrading to AGS 3.1' page in the manual for an explanation of how it works.


~Trent