Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Leon101 on Sat 04/04/2009 18:00:26

Title: Creating one-click adventure games
Post by: Leon101 on Sat 04/04/2009 18:00:26
I wanted to know how you create a one click adventure game. You know, like when there is a  chair in the living room for example, and you hover the mouse of it. The mouse changes color and down at the bottom it says: Look at chair.

And all the game needs for imput is a left click, to do everything, from opening a door to picking up an item.
Title: Re: Creating one-click adventure games
Post by: Trent R on Sat 04/04/2009 19:01:23
You're going to need to study and read the code in on_mouse_click, and repeatedly_execute.

Also, you'll want to check out the manual entries for Game.GetLocationType (http://www.adventuregamestudio.co.uk/manual/GetLocationType.htm), Game.GetLocationName (http://www.adventuregamestudio.co.uk/manual/Game.GetLocationName.htm). Oh, and probably read up on 'Handle inventory clicks' (here (http://www.adventuregamestudio.co.uk/manual/Game%20options.htm) and here (http://www.adventuregamestudio.co.uk/manual/TextScriptEvents.htm))

Maybe even look at SSH's Description module (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=26306.0)?


~Trent
PS-Sorry this is such a RTFM post. I'm a tad busy at the moment, I may come back and type up some more.
Title: Re: Creating one-click adventure games
Post by: Leon101 on Sat 04/04/2009 20:01:10
Thanks! That's exactly what I was looking for.  ;D