this is random?

This forum is meant for posting anything related to Adventure Maker that doesn't fit in the other forums.Please post technical questions in the Technical Support Forum!

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

this is random?

Postby edwr20 » Mon Jan 28, 2008 11:23 am

Hi can any one help. I am trying to make it possible so an image randomly appeases after every 3 or 4 clicks on a hot spot.

Thanks
edwr20
Junior Member
 
Posts: 11
Joined: Fri Oct 19, 2007 4:05 pm

Postby Mystery » Mon Jan 28, 2008 10:15 pm

You can load a picture after 4 clicks with this code in the Hotspot Properties:

Code: Select all
MyVariable = MyVariable-1
If MyVariable = -4 Then Action.LoadAPicture Hotspot(Hotspot_Number),  "Image_Name.jpg"


whereas:
Image_Name.jpg is the name of your image and the correct extension of your image file
Hotspot_Number is the number of the hotspot in which the image should appear.

What makes your image disappear in that hotspot again? Clicking on another hotspot?

If so, add this code to the Hotspot properties of it:

Code: Select all
Action.LoadAPicture Hotspot(Hotspot_Number),  ""
MyVariable = 0


Note, add the same hotspot number as in the first code.

With this script you make the hotspot transparent again, and reset the counter variable to 0.
The image in the hotspot will reappear after another 4 clicks.

Hope that helps :)
User avatar
Mystery
Forum Admin and Games Page admin
 
Posts: 2990
Joined: Sat Feb 04, 2006 8:12 am
Location: Switzerland


Return to Adventure Maker General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests