Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Arjunaz78 on Sun 06/11/2011 13:07:47

Title: Set Option on GUIs
Post by: Arjunaz78 on Sun 06/11/2011 13:07:47
i just create a game without a character & 'walkto' icon has disable like 'Myst' adventure games..then i create a custom GUIs (arrow image with up,down,left & right icon) that represent the changeroom action.

my question is..

1- I just create another custom GUIs arrow too that represent a 4 direction action in a circle graphic..and what i want is when player click the start menu icon,i want to set a arrow style menu option GUIs that represent two different arrow cursor direction options..how?

2- How to set a code in GlobalScript..i don't know how to put the script on GlobalScript that player automatically use only one arrow style cursor all over the games & prevent to choose different arrow style cursor when in game,after their choose one of the two option (arrow style cursor) at start menu..this mean the player can use only one style from start to the end of the game.
Title: Re: Set Option on GUIs
Post by: Khris on Sun 06/11/2011 14:02:02
You don't need two GUIs just to change how a button looks.
At the beginning of the game, let the player pick the style. Then set the buttons' .NormalGraphic properties (and the other graphic properties, if you want) to sprites a, b and c if they pick style 1 and x, y and z if they pick style 2.

Also, you NEED to start consulting the manual. What's keeping you from looking up the GUIButton entry and going through the available functions and properties?
How are you ever going to produce a decent game if you keep having to ask those extremely basic, simple questions?