Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Fedx on Fri 22/05/2009 19:03:59

Title: Loom like stile problems
Post by: Fedx on Fri 22/05/2009 19:03:59
Hi.
I want to know how can I do something like this (Taken from Loom):
When the mouse was over a hotspot, an "avatar" of that hotspot appeared (Already done). If the mouse leaves the hotspot, the avatar disapears. If the player clics on the hotspot, the avatar stays and you can cast a spell on it.

I need to know how to do the last 2. Thanks  :)
Title: Re: Loom like stile problems
Post by: Trent R on Sat 23/05/2009 05:39:51
I'd suggest doing the avatar with a GUI (most obviously, since it needs to be gamewise) along with a bool that is set when you click on it and then changing the GUI's graphic based on the bool's status in the rep_exec.

You'll also want to check out Hotspot.GetAt__XY


~Trent