Hey guys,
Been banging my head against a wall for about 2 hours on this one, I'm sure it's simple enough - just can't quite get my head around the rules of the scripting quite right yet.
So, what I want to achieve is that I have a basic introduction scene with some cycling text and want any keyboard press or click to bring up a prompt "Do you want to skip this cutscene?". The problem I've faced is that my listener doesn't seem to registed while the cutscene is playing out and the inbuilt cutscene script has no (obvious) way for adding a prompt that I could see.
My code (at this moment) is this:
Code: AGS
Note: Show text centered is a little custom script that creates a Textual Overlay.
Thanks for your help!
Been banging my head against a wall for about 2 hours on this one, I'm sure it's simple enough - just can't quite get my head around the rules of the scripting quite right yet.
So, what I want to achieve is that I have a basic introduction scene with some cycling text and want any keyboard press or click to bring up a prompt "Do you want to skip this cutscene?". The problem I've faced is that my listener doesn't seem to registed while the cutscene is playing out and the inbuilt cutscene script has no (obvious) way for adding a prompt that I could see.
My code (at this moment) is this:
// room script file
function room_Load()
{
//Play room music.
aMusic1.Play(eAudioPriorityHigh, eRepeat);
//Hide mouse cursor for intro
Mouse.Visible = false;
}
function myStartGame()
{
//re-enable mouse cursor
Mouse.Visible = true;
//START GAME: go to starting game room.
cChristianSpear.ChangeRoom(1, 60, 348);
}
function on_mouse_click(MouseButton button) {
Display("A click!");
//NEED TO ADD A CONFIRMATION MESSAGE HERE
myStartGame();
}
}
function room_AfterFadeIn()
{
ShowTextCentered("Game Title", 2016);
Wait(80);
ShowTextCentered("A subtitle placeholder...");
Wait(80);
ShowTextCentered("This is the prologue cutscene placeholder", 7);
Wait(80);
ShowTextCentered("In this scene we'll see the FIRST dream sequence.", 7);
Wait(80);
//Start the game
myStartGame();
}
Note: Show text centered is a little custom script that creates a Textual Overlay.
Thanks for your help!