Title Screen/Cursour/GUI Woes

Started by MusicallyInspired, Thu 12/06/2008 02:28:42

Previous topic - Next topic

MusicallyInspired

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...
Buy Mage's Initiation OST (Bandcamp)
Buy Mage's Initiation (Steam, GOG, Humble)

Gilbert

Where did you pit those cursor changing/GUI hiding codes?

Khris

To answer the second issue, it's supposed to be "player.ChangeRoom(1);"

MusicallyInspired

I put the cursour code in the room's script.

And thanks for that ChangeRoom code I'm sure it'll work now.
Buy Mage's Initiation OST (Bandcamp)
Buy Mage's Initiation (Steam, GOG, Humble)

Khris

Where exactly in the room script? Inside 'room_Load()'?

MusicallyInspired

#5
Well, my room script was empty except for:

Code: ags

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...
Buy Mage's Initiation OST (Bandcamp)
Buy Mage's Initiation (Steam, GOG, Humble)

SMF spam blocked by CleanTalk