Very big Noob with a question

Started by , Sun 21/12/2003 16:40:37

Previous topic - Next topic

Gfxx

Okay at the first of my game i want there to be a displayed meassage saysing is this your first time playing the game? and i want there to be a yes and a no option then when the player clicks yes a couple displays meagges come up then it loads the game and if he picks no then it just loads the game. i want this to happen once i click start game.

BerserkerTails

Okay... This is an easy thing to do.

What you need to do is create a custom GUI with the text you want and the Yes and No buttons. Now assign each button to Run Script. Now in the script for the Yes button, add your Display () code to display whatever messages you want. Then start the game as normal (NewRoom maybe?). On the No button script, don't add the Display () code, and continue with the game.

Now for the sake of this, lets say your GUI with the yes and no buttons is GUI number 3. To make it appear after clivking Start Game, just add

GUIOn (3);

That should work! Good luck with your game.
I make music.

Gfxx

isnt there a a way just to make a object and make the object look like a yes then just by clicking it or something.

MCF

Hey Gfxx - Fellow newbie here.  Trust me, you'll learn quickly.

You're right.  It is easier just to make a hotspot to activate the responses you want.

Create a room as you would any other.
Select the option to make the character invisible in the room.

There are two ways to make your buttons.

Make two objects.  Set the object interaction (using the script function in the option of commands) for one button to be the NewRoom() command.  That will load the first room of the game.  For the other button, write RestoreGameDialogue () which will summon the restore game screen.

The other option is to have images as part of your room background and set hotspots over them which summon the same commands in the script.


Here is a sample of the code from my intro screen which is pertinent for what you're doing.


function object1_a() {
 // script for object1: Any click on object
QuitGame(1);  
}


function object3_a() {
 // script for object3: Any click on object

SetGameOption (OPT_CROSSFADEMUSIC, 0);
StopMusic ();
SetGameOption (OPT_CROSSFADEMUSIC, 4);
NewRoom (5);

 
}

function object2_a() {
 // script for object2: Any click on object

RestoreGameDialog ();  
}

Ness

Hey thast cool im Gfx i was just to lazy to log in anywasy thanks is there any websites for kings quest stuff i could add to my game.

SMF spam blocked by CleanTalk