i have several rooms and walkable areas (hope the limit for them increases soon) in one game-room,
so i need an easy way to find out, if the player has reached his walking goal, to perform several actions,
otherwise the actions must be canceled.
Codeexample:
Code: ags
so i need an easy way to find out, if the player has reached his walking goal, to perform several actions,
otherwise the actions must be canceled.
Codeexample:
function oMoneybox_AnyClick()
{
player.Walk(875, 655, eBlock, eWalkableAreas);
player.FaceDirection(eDirLeft);
if(mouse.Mode == eModeInteract)
{
..........................
}
else if(mouse.Mode == eModeLookat)
{
............................
}
else if(mouse.Mode == eModeUseinv)
{
..............................
}
else
player.Say("Das funktioniert leider nicht.");
}