Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: michaeljp64 on Sun 30/10/2022 10:28:19

Title: problemo
Post by: michaeljp64 on Sun 30/10/2022 10:28:19
function treehotspot_Look()
{
cEgo.Walk(55, 144, eBlock);
cEgo.FaceLocation(int 30, int 143, eBlock);
Wait (25);
cEgo.FaceDirection(eDirectionDown, eBlock);
cEgo.Say("What Strange Tree i have no way of climbing it");
}

i am trying to make him walk to the tree the face the tree and face back with taht word
Title: Re: problemo
Post by: Nahuel on Sun 30/10/2022 10:39:50
To be honest I don't know why you are passing this args to FaceLocation int 30
cEgo.FaceLocation(int 30, int 143, eBlock); when you need to pass the actual the int value 30.

function treehotspot_Look()
{
cEgo.Walk(55, 144, eBlock);
cEgo.FaceLocation(30, 143, eBlock);
Wait (25);
cEgo.FaceDirection(eDirectionDown, eBlock);
cEgo.Say("What Strange Tree i have no way of climbing it");
}