Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: LilBlueSmurf on Tue 12/07/2005 05:02:17

Title: Can you display a character OVER a gui?
Post by: LilBlueSmurf on Tue 12/07/2005 05:02:17
What I want to do is have a gui button animate when I click it.  I know I can do:
loop
set button=image
wait(x)

The problem is that I want to be able to have multiple buttons animate at once, or at least be able to "que" the gui mouse clicks, so a person can click on multiple buttons and get the desired result instead of having to wait until each loop ends to click the next.

The only way I could come up with is if a character can be displayed over a gui, because I could probably figure out a way to just make it's idle animation the desired animation effect, move it into the room and over the button (I know I'd have to have a new char for each button to have multiple going) then just move the char back to a "holding room" until I need the animation again.

If someone can think up a better idea of how to do this (I am very new) or I am not clear in my explination, please feel free to also post alternate ideas or questions.  Or if there is some way to cause a wait without pausing all scripts that would obviously work too.
Title: Re: Can you display a character OVER a gui?
Post by: Gilbert on Tue 12/07/2005 05:21:30
No, GUIs are always drawn on top of characters.

You can however use AnimateButton() (V2.6 through V2.62) or btnBtton1.Animate() (V2.7+) for that, look for these functions in the manual.
Title: Re: Can you display a character OVER a gui?
Post by: LilBlueSmurf on Wed 13/07/2005 16:08:31
Ahh, that works great.  Thanks much.