For my Caribbean Mysteries there will be a puzzle where you have to trick an old man by tossing a coin to the ground, the old man will walk over to the coin, stand still for 10 seconds then come back to the place he was. While he is going for the coin you have to snatch a pendlum from his desk or you have to redo it. Now the problem is that the man does go to the coin to pick it up and which means you can take the pendlum but he doesn't return back to his place which means you've got all time in the world to get it (which is needlessly to say is not the point).
Here's the script for the puzzle:
Code: ags
What have I missed? Please help!
Here's the script for the puzzle:
MoveCharacter(EGO,798,265);
FaceLocation(EGO,600,265);
ObjectOn(3);
MoveCharacter(EGO,815,265);
DisplaySpeech(EGO,"Say, isn't that a coin lying on the ground?");
DisplaySpeech(HYP,"A coin? Where?");
FaceLocation(HYP,798,265);
DisplaySpeech(HYP,"Ah, there!");
MoveCharacter(HYP,798,265);
int timer=0;
distract = 1;
SetTimer(1,400);
if (IsTimerExpired(1)==1){
distract = 0;
ObjectOff(3);
DisplaySpeech(HYP,"Must be my lucky day.");Ã,Â
if (GetGlobalInt(11) ==1){
DisplaySpeech(HYP,"Hey, where did my pendlum go?");
}
}
What have I missed? Please help!