Object move going off the edge

Started by Ghostlady, Sun 08/03/2009 21:28:58

Previous topic - Next topic

Ghostlady

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);
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven Plantation
Haunting at Cliffhouse

Makeout Patrol

#1
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.

Ghostlady

You are right.  I divided the co-ordinates in half and it worked correctly.  My game is 640 x 480 though.  ???
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven Plantation
Haunting at Cliffhouse

Trent R

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
To give back to the AGS community, I can get you free, full versions of commercial software. Recently, Paint Shop Pro X, and eXPert PDF Pro 6. Please PM me for details.


Current Project: The Wanderer
On Hold: Hero of the Rune

SMF spam blocked by CleanTalk