Moving middle of character to walk cursor

Started by Goot, Wed 16/06/2004 20:07:49

Previous topic - Next topic

Goot

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.

Moox

Well you could make one region for the walls and use wjen player walks on region

Goot

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.

strazer

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.

InCreator

It would be alot easier if AGS supported changeable masks for collision detection for characters. But this isn't needed very often, I think.

Darth Mandarb

I made a suggestion a few months back about Object Information.Ã,  Being able to view the objects (and characters) X/Y locations while in the editor.

Another one I suggested was Object Control Points 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.

SSH

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...
12

SMF spam blocked by CleanTalk