I'm trying to make an NPC enter the room, walk to a chair and sit. After many trials & errors it works, sort of, but the character keeps walking on place for a few seconds before moving. I wonder why.
I put the walking script in globalscript.asc, after I found out that in the room script it would make the character endlessly walk on place.
Here's the globalscript:
and here's the room code:
I put the walking script in globalscript.asc, after I found out that in the room script it would make the character endlessly walk on place.
Here's the globalscript:
if (cEgo.Room == 4) {cChar3.ChangeRoom(4, 607, 465); cChar3.Walk(407, 358, eNoBlock, eAnywhere);
and here's the room code:
bool miss_arrived = false; function room_RepExec() { if (cChar3.Room == 4) { if (!cChar3.Moving && !miss_arrived) { cChar3.FaceLocation (cChar3.x, cChar3.y+1); cChar3.LockView(11); cChar3.Animate(1, 5, 0, eNoBlock); miss_arrived = true; } }