I feel kinda stupid for asking this, but I couldn't find it anywhere, even though it's basic knowledge... *sigh*
Question #1: I want my character to walk to a door, face it and open it. But when I click with Interact cursor on the door, it opens whilst he walks towards it. And on top of it, he doesn't turn around when he reaches it.
My code is the following:
function oFridge1_Interact()
{
cLars.Walk (185,180);
cLars.FaceObject (oFridge1);
oFridge1.Visible = false;
oFridge2.Visible = true;
}
Question #2: I move the character a bit to the left and click the new object (the opened fridge-door) to close it, and he moonwalks back on the old spot.
Note: At the moment I only have the animations for walking left and right.
My code:
function oFridge2_Interact()
{
cLars.Walk (185,180);
cLars.FaceObject (oFridge2);
oFridge2.Visible = false;
oFridge1.Visible = true;
}
Confused...
In the .Walk command, add the eBlock parameter after the coordinates...
Ah, thanks :)