Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Wed 16/06/2004 11:03:50

Title: Beneath a steel sky GUI
Post by: on Wed 16/06/2004 11:03:50
Can someone make GUI what is in Beneath a steel sky game, and then post it here.

Thanks ;)
Title: Re: Beneath a steel sky GUI
Post by: Gilbert on Wed 16/06/2004 11:07:09
You may have better luck asking here (http://www.agsforums.com/yabb/index.php?topic=10001.0) instead. :P
Title: Re: Beneath a steel sky GUI
Post by: Lazy Z on Wed 16/06/2004 11:32:14
You're in luck, someone has made one already. Go to this site:
http://www.freewebs.com/skimbleshanks/templates.htm
and scroll down a bit, you'll find a template there.
Title: Re: Beneath a steel sky GUI
Post by: on Wed 16/06/2004 13:10:24
Thanks a lot dude!!!
Title: Re: Beneath a steel sky GUI
Post by: Qwerty on Wed 16/06/2004 19:56:54
Thanks again, but now I have another prob.

I do starting screen, Start, load etc.
I make hotspot: Interaction -> Any click on hotspot -> Player goto room2

Game regonizes only right mouse button click, but when I click left mouse button, pointer becomes invisible and game jammes.

Right button works ok.

Any ideas?

-Thanks
Title: Re: Beneath a steel sky GUI
Post by: TerranRich on Wed 16/06/2004 19:57:07
What were you doing? Asking for someone to do something for you, then handing it over to you?
Title: Re: Beneath a steel sky GUI
Post by: Qwerty on Thu 17/06/2004 08:24:06
I'm asking how I can make left mouse button work in starting screen.

EDIT: And how I can hide GUI in my starting screen. Hide GUI doesn't work.
Title: Re: Beneath a steel sky GUI
Post by: TerranRich on Thu 17/06/2004 13:19:54
Sorry, I meant your first post:

QuoteCan someone make GUI what is in Beneath a steel sky game, and then post it here.

You simply replied a few seconds faster than I did.

As for your problem,  this mght sound stupid, but make sure that room 2 exists and is named correctly (room2.crm). Also, make sure you're not in WALK cursor mode when clckng on the hotspot. Change the cursor mode to USE, for example.
Title: Re: Beneath a steel sky GUI
Post by: Qwerty on Thu 17/06/2004 13:31:54
Uh oh, I think I need better baSS GUI, beacuse I'm getting error: SetGUIzize invalid dimensions...

EDIT: Lazy Z had same kind of problem long time ago:

QuoteWell, the error message is this:

(Global script line 134)
Error: SetGUIPosition: co-ordinates must lie in range (0,0) - (RMWID,RMHIT)

And the line from my global script is:
SetGUIPosition(TEXT, xpos, ypos);

I'm using the Beneath a Steel Sky template, by the way. I apologise for posting this here, I should have made a thread in the technical forum long ago, but I haven't had the time to do so...Ã, 



I'm sorry about that. I fixed it. | Characters -> apply no interaction.
Now, I still have starting screen prob...
Title: Re: Beneath a steel sky GUI
Post by: Darth Mandarb on Thu 17/06/2004 15:06:57
Quote from: Qwerty on Thu 17/06/2004 08:24:06EDIT: And how I can hide GUI in my starting screen. Hide GUI doesn't work.
GUIOff(X); // X = the GUI number you want to shut off
Title: Re: Beneath a steel sky GUI
Post by: Qwerty on Thu 17/06/2004 15:13:49
Thanks!

Only one more problem to go...
Title: Re: Beneath a steel sky GUI
Post by: TerranRich on Thu 17/06/2004 15:54:41
What's the final problem?
Title: Re: Beneath a steel sky GUI
Post by: Qwerty on Thu 17/06/2004 16:10:33
Quote from: Qwerty on Wed 16/06/2004 19:56:54

I do starting screen, Start, load etc.
I make hotspot: Interaction -> Any click on hotspot -> Player goto room2

Game regonizes only right mouse button click, but when I click left mouse button, pointer becomes invisible and game jammes.

Right button works ok.


That is...

EDIT: Weird... When I put player character visible, it works ok...
EDIT: Well... I solved it, I made empty sprite, and did view, what contains only empty sprite. Then I make walkable area, and changed player view to empty, when player is in area.

I hope, someone understand ;D

Thanks for all, who helped newbie!!
Title: Re: Beneath a steel sky GUI
Post by: Lazy Z on Fri 18/06/2004 09:19:34
I had that problem with the left click too, that was a clever way of getting around it! Although I've no idea why that happens when you're hiding the player character in a room. Any ideas why this happens, anyone?
Title: Re: Beneath a steel sky GUI
Post by: Scorpiorus on Fri 18/06/2004 15:00:16
That's probably because of the script in the BASS template. You can try to workaround it by explicitly handling mouse clicks in the room with menu:

// room script (a menu with load/save etc.)

   function on_mouse_click(int button) {

      ProcessClick(mouse.x, mouse.y, GetCursorMode());
      ClaimEvent();
   }

But be sure you use the latest AGS version, otherwise the code would have no effect.
Title: Re: Beneath a steel sky GUI
Post by: Qwerty on Fri 18/06/2004 16:10:47
Quote from: Scorpiorus on Fri 18/06/2004 15:00:16
That's probably because of the script in the BASS template. You can try to workaround it by explicitly handling mouse clicks in the room with menu:

// room script (a menu with load/save etc.)

   function on_mouse_click(int button) {

      ProcessClick(mouse.x, mouse.y, GetCursorMode());
      ClaimEvent();
   }

But be sure you use the latest AGS version, otherwise the code would have no effect.

Thanks, but I don't modify the script, beacuse it's working now...
Title: Re: Beneath a steel sky GUI
Post by: WHAM on Fri 09/03/2007 08:41:26
The template link is sadly dead.
Any other leads on where to get this?
Title: Re: Beneath a steel sky GUI
Post by: Ashen on Fri 09/03/2007 10:21:29
It's not surprising the link is dead - this thread is nearly three years old!
The 'Read before posting' thread contains a link to the AGS Resources site (http://www.americangirlscouts.org/agsresources/), which also has the template for download. I'm not sure how much use it'll actually be, though. Due to its age it'll be written in old-stlye AGS scripting, and may cause problems if used with a newer version. It may be easier to consider what exactly you want and re-make it for yourself, than to try to update this template.
Title: Re: Beneath a steel sky GUI
Post by: Stupot on Fri 09/03/2007 11:45:07
To be fair though, I was a bit confused when I first came here... one rule said "make sure you search I the forums before starting a new thread", and another rule says "don't dig up old threads".  so in Wham's case, He honored the first rule by finding a link in a very old thread, but the link was dead... If he'd have started a new thread asking the same question he probably would have been told off for asking an old question.
Title: Re: Beneath a steel sky GUI
Post by: Ashen on Fri 09/03/2007 12:01:35
I wasn't telling WHAM off, just commenting.
Well, possibly a little telling off for not having checked the 'Read before posting' thread very well, but not for using an existing (if very old) thread over starting a new one.