Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: idiotbox on Fri 28/10/2005 00:43:53

Title: Moving characters to Objects problem
Post by: idiotbox on Fri 28/10/2005 00:43:53
Okay, so I'm aware MoveCharactertoObject doesn't work. The manual says use character.Walk. Well, I've tried using:

character[BIL].Walk(oPic)
and there's not enough peramiters

character[BIL].Walk(oPic.x, oPic.y)
and that doesn't work either.

and also replaced oPic with object[0] but nothing is working. It may be a very easy answer but I can't figure it out. Can anyone help?
Title: Re: Moving characters to Objects problem
Post by: Janik on Fri 28/10/2005 01:23:10
Perhaps you need to make the walk blocking, thus:

character[BIL].Walk(oPic.x, oPic.y, eBlock)
Title: Re: Moving characters to Objects problem
Post by: Ashen on Fri 28/10/2005 08:58:21
The object X and Y properties are case-sensitive. Use:

cBil.Walk(oPic.X, oPic.Y);

(And, obviously, make sure there's a walkable area there.)