Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Goot on Wed 16/06/2004 20:07:49

Title: Moving middle of character to walk cursor
Post by: Goot on Wed 16/06/2004 20:07:49
In my game I have this maze, shown from a bird's eye view. I want to make it so the middle of the character will move to where the mouse cursor is. I know I could make a separate cursor which when used on the whole screen hotspot, moves character to mouse.x, mouse.y+10 or whatever, but then I'd have to move all the regions, covering the walls of the maze, down. (I'm making it so if the player hits a wall, they lose, so they can't just move to any random place and the computer will get them there. The whole screen is a walkable area.) Is there an easy way to solve this problem.
Please help if you can, thanks.
Title: Re: Moving middle of character to walk cursor
Post by: Moox on Wed 16/06/2004 20:30:17
Well you could make one region for the walls and use wjen player walks on region
Title: Re: Moving middle of character to walk cursor
Post by: Goot on Wed 16/06/2004 20:44:17
I've done that part. The part I need to work is getting the middle of the character to move to where the cursor was, and for that place to be where the character actually is, in terms of being on regions.
Title: Re: Moving middle of character to walk cursor
Post by: strazer on Wed 16/06/2004 21:29:33
That's an interesting question, if I understand you correctly.
You'd like to move a character's "hotspot" from the bottom-center to center-center, right?
That's a good point and I'm surprised there's no function to change that.
Title: Re: Moving middle of character to walk cursor
Post by: InCreator on Wed 16/06/2004 22:41:53
It would be alot easier if AGS supported changeable masks for collision detection for characters. But this isn't needed very often, I think.
Title: Re: Moving middle of character to walk cursor
Post by: Darth Mandarb on Thu 17/06/2004 15:05:29
I made a suggestion a few months back about Object Information (http://www.agsforums.com/yabb/index.php?topic=11555.0).Ã,  Being able to view the objects (and characters) X/Y locations while in the editor.

Another one I suggested was Object Control Points (http://www.agsforums.com/yabb/index.php?topic=10790.0) about being able to control the hotspots on objects/characters.

So this might be something Mr. Jones is considering and/or working on.  If I understand what you're asking, the second suggestion might be just what you're looking for.
Title: Re: Moving middle of character to walk cursor
Post by: SSH on Thu 17/06/2004 15:22:01
The object X/Ys are there in 2.61 I think, and you can use the new z feature to add a negative offset to your character's Y posotion, I think...