Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Buckethead on Thu 30/09/2010 13:51:00

Title: hidden object hint system (solved)
Post by: Buckethead on Thu 30/09/2010 13:51:00
Everyone who is familiar with hidden object games must know what I mean. The objects are hidden but when you click the hint button it shows the first object you are looking for. Usually by placing some kind of halo around where the object is.

I'm having trouble with making this and I've ran out of ideas on how to accomplish it.

the main problem is that every hidden object room has a different number of objects. Plus the hint button is on a GUI and the objects obviously don't work together with the global script.

I've tried using dynamic variables
Arrays And Custom properties.

But I'm running from one problem into another.

Some help please  :)
Title: Re: hidden object hint system
Post by: Khris on Thu 30/09/2010 14:29:43
Room.ObjectCount will tell you the number of objects in the current room.

To access them, use the object[] array.
Title: Re: hidden object hint system
Post by: Wyz on Thu 30/09/2010 15:35:52
and you can use the CallRoomScript(...) function with the on_call event to start the hint procedure.
Title: Re: hidden object hint system
Post by: Buckethead on Sat 02/10/2010 14:45:59
Almost forgot to thank you guys! Works like a charm now!  ;D