Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: LRH on Wed 01/04/2009 03:29:42

Title: Menu Help!
Post by: LRH on Wed 01/04/2009 03:29:42
Sorry guys, I know this must have been asked a million times, but I can't find anything using search with a similar problem to mine. So, I'm trying to make a simple main menu:

New Game
Load Game
Quit

I made a hotspot over new game, and the code is as follows:

function hHotspot1_AnyClick()
 
  {
player.ChangeRoom(2, 140, 440);
  }

I have also tried cEgo.changeroom, etc.

It won't work...
I have a Room 2, that isn't the problem...
The character is off screen
I even tried having the character on screen for debug purposes, it still won't work
Tried without coordinates, still won't work

It doesn't throw an error or anything, nothing happens when I click it.

I tried adding a if statement making sure the mouse is in pointer form too, still wont work...
can anyone help me please?
Any help is very much appreciated.
Title: Re: Menu Help!
Post by: Dualnames on Wed 01/04/2009 03:31:56
Your character is trying to walk near the hotspot. You have walk to hotspot points enabled, thus when he reaches the hotspot he'll run the interaction, place a walkable area and everything will prob be fine.

To avoid all that, using a GUI would be better(just a thought).
Title: Re: Menu Help!
Post by: LRH on Wed 01/04/2009 03:33:35
Oh my. Enabling. Newb-ish mistake. Thanks a ton! Sorry for such a trivial question, we all make mistakes now and then :P
Title: Re: Menu Help!
Post by: Dualnames on Wed 01/04/2009 03:34:26
Quote from: Domithan on Wed 01/04/2009 03:33:35
Oh my. Enabling. Newb-ish mistake. Thanks a ton! Sorry for such a trivial question, we all make mistakes now and then :P

No harm done, nice to have you back again..
Title: Re: Menu Help!
Post by: LRH on Wed 01/04/2009 03:40:55
Woah, do you remember me or are you just checking my records?
Anyways, I'm working on something much bigger and better than what was last seen from me, now that I have a fairly firm understanding of the engine.
Title: Re: Menu Help!
Post by: Dualnames on Wed 01/04/2009 03:45:28
Quote from: Domithan on Wed 01/04/2009 03:40:55
Woah, do you remember me or are you just checking my records?
Anyways, I'm working on something much bigger and better than what was last seen from me, now that I have a fairly firm understanding of the engine.

I can recall your avatar. I never cheat. ;)