GUI Start Menu Didn't Work [SOLVED]

Started by Arjunaz78, Wed 28/09/2011 17:49:54

Previous topic - Next topic

Arjunaz78

I've create a custom GUI with image background like below,but i don't know if i missplaced the code or confuse to use the code normally that result as picture below,the GUI running but the button seem unvisible/non-clickable (see Load Game,New Game & X mark button) what's wrong?

i currently stuck too when need to put the 'new game' run scripts..i confuse where i must to put whether on room script or global script and don't know what the right syntax or code i must use to activate the function to create new game on starting room..besides the densming GUI tutorial on youtube doesn't help too much..

p.s - sorry if you confuse with my problem..because i can't speak perfect English :P







..In the making of Silent Hill: The Hospital..

https://www.facebook.com/ArjunazGamesStudio

pcj

Are there any blocking scripts running?  GUI controls are disabled during blocking scripts.  All those Wait() commands in room_AfterFadeIn() would do it.

GUI scripts should be placed in the global script.
Space Quest: Vohaul Strikes Back is now available to download!

Khris

Please don't use imageshack, it's gotten horrible. imgur.com is way better and doesn't hold the direct link for ransom.

Also, if you post code, why not copy and paste it in between [code] tags? Much easier.

Without looking at your code, to start a New Game, just move the player character to the first room or intro room.
You can use a fullscreen GUI that pauses the game and simply close it.

To REstart the game, just call RestartGame();

hedgefield

Is gStartGame this main menu GUI you speak of? In that case, from what I can tell, right after you open the this GUI you trigger music and then a long sequence of blocking ShowText commands and Wait(180) commands. Probably this is preventing you from being able to click on anything - which seems to be supported by the Wait cursor that is visible in that first screenshot.

Try putting your menu GUI in a completely seperate room so there is no other code to interfere with it.

pcj

ShowTextCentered is a custom non-blocking function using Overlays.  It's just the Wait causing it.
Space Quest: Vohaul Strikes Back is now available to download!

Arjunaz78

Quote from: LeKhris on Thu 29/09/2011 01:25:41
Please don't use imageshack, it's gotten horrible. imgur.com is way better and doesn't hold the direct link for ransom.

Also, if you post code, why not copy and paste it in between [code] tags? Much easier.

Without looking at your code, to start a New Game, just move the player character to the first room or intro room.
You can use a fullscreen GUI that pauses the game and simply close it.

To REstart the game, just call RestartGame();

Thanks for the suggestion LeKhris,i appreciate that,then from now on i stop using imageshack to upload it..besides imageshack will annoying with an ads popup.

Thanks again.
..In the making of Silent Hill: The Hospital..

https://www.facebook.com/ArjunazGamesStudio

monkey0506

Imageshack is fine. So long as you're not incompetent you can get the direct link just fine. :P

And Imgur is extremely overrated. If you have a slower internet connection it will take about 5-10 years...er...minutes to upload even the smallest of images.

[/spam]

Khris

What has incompetence got to do with it? Sure, you can dig through the source or search it for "Direct Link", but imgur doesn't require being signed in in order to not having to do that.

Simply put, it's better, period.

No idea where you get the overrated from. As soon as a better imagehost surfaces, we will recommend that. That's how it is and always has been.

SMF spam blocked by CleanTalk