Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: MusicallyInspired on Thu 12/06/2008 02:28:42

Title: Title Screen/Cursour/GUI Woes
Post by: MusicallyInspired on Thu 12/06/2008 02:28:42
I've set up a title screen for my game with a GUI of 3 buttons: Play Game, Restore Game, and Quit. I've made it so Ego is not visible in this screen and so walking is disabled but there's still the iconbar that pops up and I can't seem to get the cursour to change to a pointer and a pointer only for just the title screen. I've tried mouse.Mode = eModePointer; and Mouse.UseModeGraphic(eModePointer) and neither do a thing. I've also tried hiding the Iconbar with gIconbar.Visible = false; and this doesn't work as well. I'm a little frustrated. I'm not new to programming but it's always difficult learning a new language :).

I also am trying to figure out how to change rooms to room 1 when Play Game is clicked. I put Character.ChangeRoom(1); in the button's script for when it's clicked on but that won't compile. I know I'm doing something wrong I'm just not sure what. I've searched the forums and the help file and haven't found any answers yet...
Title: Re: Title Screen/Cursour/GUI Woes
Post by: Gilbert on Thu 12/06/2008 02:44:55
Where did you pit those cursor changing/GUI hiding codes?
Title: Re: Title Screen/Cursour/GUI Woes
Post by: Khris on Thu 12/06/2008 08:48:59
To answer the second issue, it's supposed to be "player.ChangeRoom(1);"
Title: Re: Title Screen/Cursour/GUI Woes
Post by: MusicallyInspired on Thu 12/06/2008 13:43:38
I put the cursour code in the room's script.

And thanks for that ChangeRoom code I'm sure it'll work now.
Title: Re: Title Screen/Cursour/GUI Woes
Post by: Khris on Thu 12/06/2008 14:32:13
Where exactly in the room script? Inside 'room_Load()'?
Title: Re: Title Screen/Cursour/GUI Woes
Post by: MusicallyInspired on Thu 12/06/2008 14:38:36
Well, my room script was empty except for:


function room_AfterFadeIn()
{

}

So I put it in there. Is there anything else I'm supposed to add?

Also, I'm trying to keep the IconBar from appearing on the title screen and I want the cursour to be the pointer but I'm not sure where to do that either...