Moving to character easier without having to specific x and y

Started by xenogia, Tue 05/05/2009 01:39:10

Previous topic - Next topic

xenogia

I was wondering if there was an easier way to specify the playable to character to walk to another character.  At the moment I have to trial and error the x-y coordinates which can be painful.. Is there another way?

Gilbert

You can just do something like:

player.Walk(eDog.x, eDog.y);

Trent R

player.FollowCharacter(cPerson);
player.Walk(cPerson.x-5, cPerson.y-42);

I'm out the door, but these should both push you in the right direction.

~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