direct move obselete?

Started by don_tomaso, Thu 27/10/2005 17:44:11

Previous topic - Next topic

don_tomaso

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??

SSH

player.x=100; player.y=200;
12


Ashen

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()).
I know what you're thinking ... Don't think that.

don_tomaso

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" ?

Ashen

Yes, but if you only want it to happen once or twice, you might be better just changing their coords, as SSH said
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk