Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: don_tomaso on Thu 27/10/2005 17:44:11

Title: direct move obselete?
Post by: don_tomaso on Thu 27/10/2005 17:44:11
um well I wanted to "teleport" an npc from one place in the room to another before fade in, and when I looked how to do it, I found setmovedirect or something, but then it sais its obselete with ags 2.7 .. what is the replacement??
Title: Re: direct move obselete?
Post by: SSH on Thu 27/10/2005 17:55:25
player.x=100; player.y=200;
Title: Re: direct move obselete?
Post by: don_tomaso on Thu 27/10/2005 21:18:55
oh :)
Title: Re: direct move obselete?
Post by: Ashen on Thu 27/10/2005 21:23:33
For the record, I think that has always been the way to do immediate movement (along with using a walkspeed of 0). MoveCharacterDirect() - which I think is what don_tomaso was talking about - just told the character to ignore walkable areas (and has been made obsolete, in favour of the WalkWhere parameter of Character.Walk()).
Title: Re: direct move obselete?
Post by: don_tomaso on Fri 28/10/2005 01:35:56
oh okay, well Im no good at scripting so I didnt know that..

but um so if I move someone with speed 0 they "teleport" ?
Title: Re: direct move obselete?
Post by: Ashen on Fri 28/10/2005 08:51:00
Yes, but if you only want it to happen once or twice, you might be better just changing their coords, as SSH said