Cancelling Scripts,animations and intros :)

Started by Rd27, Thu 29/07/2004 19:46:05

Previous topic - Next topic

Rd27

Sorry for the bad Subject  :P

How can I make so, that when my game is having some of those what I mentioned in Subject, the player can cancel that by pressing esc in example?

I have this example:

if (value==3){
   SetGlobalInt(2,1);
   MoveCharacterBlocking(LEPPALA,268,202,0);
   Wait(20);
   MoveCharacterBlocking(LEPPALA,225,188,0);
   FaceLocation(LEPPALA,238,222);
   DisplaySpeech();
   ShakeScreen(5);
   FlipScreen(3);
   DisplaySpeech();
   DisplaySpeech();
   DisplaySpeech();
   
}
}

I want, that if player press esc, he does not see the character LEPPALA walking and any other of it. Or the player can press esc whenever he wants and cancel animation that way.

The DisplaySpeech is blank, because it is in finnish language so I removed the text  ;D

Thanks :)

Mr Jake

I think all you need to do is add [cutscene] at the start and [/cutscene] at the end of the code.

Rd27

I just found the answer from the manual ;D

Thanks anyway

SMF spam blocked by CleanTalk