load_Room and GUI difficulties

Started by AdHoc01, Tue 18/03/2008 15:19:31

Previous topic - Next topic

AdHoc01

Hi,

Im creating my first game and I'm really enjoying how easy AGS is to work with, created most of the playable game in a couple of days!

HOWEVER, I'm having real problems creating my Start page/menu. I've been looking around this forum for a few hours and have found some great info but I can't get any of it working. So was wondering if anyone could help me.

What I'm trying to achieve;
    Background image menu with hotspots (Working great)

    Disabling all GUIS (im using the defult GUIs for my game) ; I have tried using g.Statusline.Visible = false but it doesnt change a thing. I think I might be referencing it in the wrong place. I dont seem to be able to get the load_Room function working, I have tried it in both globalscript.asc and in my room2.asc.

   Disabling the character; I have tried cEgo.transparency = 100;



Apologies for such a simple question, I can't believe that this is the area that has stumped me!
Any help would be greatly appreciated.


twin-moon

Hi! Welcome aboard.


Quote from: AdHoc01 on Tue 18/03/2008 15:19:31Disabling all GUIS (I'm using the defult GUIs for my game) ; I have tried using g.Statusline.Visible = false but it doesnt change a thing. I think I might be referencing it in the wrong place. I dont seem to be able to get the load_Room function working, I have tried it in both globalscript.asc and in my room2.asc.

Remember, there's no dot after the g! If you add "gStatusline.Visible = false" to game_start (in the global script) it should be disabled from the start. Like this:

Code: ags

function game_start() // called when the game starts, before the first room is loaded
  {
    gStatusline.Visible = false;
  }


If you add the line to your room_Load, it should be disabled when to the game shifts to this room.


Quote from: AdHoc01 on Tue 18/03/2008 15:19:31Disabling the character; I have tried cEgo.transparency = 100;

Don't disable the character by using transparency.
Go to the room by clicking on Edit Room, look in the menu on the right side for 'ShowPlayerCharacter'. Set that to false and you're done.
                                    The Grey Zone

Khris

The function will only be called if it's linked properly, i.e. its name is entered into the room's event pane. Double-click "Edit room", click the flash icon above the properties list, then click "Enters room before fadein", then the ... button. (Or enter a custom name, then create a function with the same name.)

AdHoc01

Thanks guys, thats perfect!
Really appreciate all your help!

SMF spam blocked by CleanTalk