Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: RetroJay on Fri 25/01/2008 03:27:50

Title: Random buttons.
Post by: RetroJay on Fri 25/01/2008 03:27:50
Hi all.
Tis me again!
Sorry to be a pain.
I am having another prob with my game.
Is there a way to get a button (object) to appear in random cords on screen for only a few secconds.
I would like it to be clickable, but random, so as when you play the section of game again the button appears in a different place each time.
I would like it so that if you do not click the button in time then you DIE! Ha Ha ha! ;)

I hope you can help. Thanx.

I'm sorry if I have posted this in the wrong place.
But I assumed that it would be to do with scripting!
Title: Re: Random buttons.
Post by: Radiant on Fri 25/01/2008 08:58:53
Yes, easily. Use the repeatedly_execute function to switch the GUI on and off, and use the Random function to give it coordinates.