Start screen

Started by , Mon 01/03/2004 18:23:42

Previous topic - Next topic

Rik Vargard

I made a GUI as start screen with "new", "load", "quit" buttons, but can't make them work! All I tried in scripting has failed!
Plz help!
Thx!  ;D

Ishmael

Set the buttons' left-click action to "Run Script"?
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Darth Mandarb

Make sure, in the GUI editor, that the buttons are set to 'Run Script' and make sure the script is correct.

Maybe you could post the script for the GUI?  It would help.

~ d

Rik Vargard

Aye! Thx guys, I found it out, now!!

;D

SillySue

How do you save the start screen as?

Can you have more than 1 intro room, and how do you save them as?

Alynn

Just make another room for your start screen (like room1) make it so the player is invis in that room and put the code to turn on and place your start gui OR you can just make a startup room with the buttons as hotspots.

You can make as many intro rooms as you want, for instance, all my logo's are in intro.crm with using SetBackground frame to switch between them, after the logo's are finished I do a NewRoom(1) which is my title screen and has the GUI for starting the game (loading and quitting as well) You can continue doing this for as many rooms as you need for whatever kind of intro you want.

Rik_Vargard

yar Cool! That hotspot thing just worked out fine! Thx! :)

Scummbuddy

#7
One thing that LucasArts did when making games back when, was that they would use like a scrolling room for it.  just combining both images next to each other and then using 'Set Viewport' (look in the manual for parameters) you can keep in on one intro screen

but, saving a room as intro.crm will work and will start as your intro screen, but there is no such thing as intro1.crm or intro2.crm as far as ive been told. you would just do roomX.crm, and call it, and do what was said above and just hide player character and any guis that would interfere.
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

SillySue

I've also made a start screen. When I tried to write the script, there's always something wrong.

Can someone give me the complete script for this:

Introduction is button 1
Load is button 2
Quit is button 3

And another thing, instead of having save, load and quit in the icon bar, I want an option that goes to a different GUI with Save, load, restart, quit and play.

Sorry, but I just cant seem to get it right. My biggest problem is if I make a GUI, it's always there. I wrote GUIoff, but I think I did it wrong

I'm begging you!!!!

Please. I know its a lot of writing to do for me, but I'm really stuck

Scorpiorus

#9
So you made a GUI (name it MAINMENU))

Set its visible property to pop-up modal (thus disabling it on startup).

button 1 - Introduction
button 2 - Load
button 3 - Quit

main global script:

function on_interface_click(int interface, int button) {

Ã, Ã, Ã, if (interface == MAINMENU) {

Ã, Ã, Ã, Ã, Ã, Ã, if (button == 1) NewRoom(intro room number);
Ã, Ã, Ã, Ã, Ã, Ã, if (button == 2) RestoreGameDialog();
Ã, Ã, Ã, Ã, Ã, Ã, if (button == 3) QuitGame(1);

Ã, Ã, Ã, }

}

SMF spam blocked by CleanTalk