Appearing hotspots

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

Appearing hotspots

Postby Velorond » Sun Sep 26, 2021 1:09 pm

Anyone alive here?

It´s been such a long time and i have forgot how to make hotspots appear when you press on something else.
Anyone able to help me?
User avatar
Velorond
Member
 
Posts: 35
Joined: Sun Aug 03, 2008 7:40 pm
Location: Sweden

Re: Appearing hotspots

Postby reneuend » Wed Sep 29, 2021 2:57 am

If you want to display a static image, use Action.LoadAPicture in the hotspot that is clicked on. See attached pdf (shows example)

If you want to show and hide an animated gif... I'll need to work on that one. Nothing I've tried has worked so far.

The following routines also work to show and hide hotspots as an alternative to using the LoadAPicture. You will need to add them to your Procedures area.

Code: Select all
Function HideHotspot(hotnum)

  Hotspot(hotnum).Enabled = False
  Hotspot(hotnum).Move 100000*15,100000*15

End Function 'HideHotspot


Code: Select all
Function ShowHotspot(hotnum, xval, yval)

  Hotspot(hotnum).Enabled = True
  Hotspot(hotnum).Move xval*15,yval*15

End Function 'ShowHotspot



Let me know if you have more questions!
Attachments
Howto_Click_Show_Hotspot.pdf
How to Click and show hotspot of a static image
(284.46 KiB) Downloaded 13 times
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2743
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA


Return to Adventure Maker General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron