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
by Tony_LaRocca » Thu Feb 28, 2008 6:08 am
In a frame, if the player clicks on a hotspot enough times, he gets treated to a video. Since i have to use scripting to count the times, I have to run the video with script. The only problem is that the hotspots of the frame are still visible (and clickable!) while the video is running! Is there any way to disable the hotspots while the video is playing?
Thanks
-

Tony_LaRocca
- Member
-
- Posts: 34
- Joined: Wed Feb 20, 2008 4:14 am
by Mystery » Thu Feb 28, 2008 8:47 am
You can disable hotspots by using the following code:
- Code: Select all
Hotspot(Hotspot_Number).Enabled = False
To enable it again, use
- Code: Select all
Hotspot(Hotspot_Number).Enabled = True
If there is an image in your hotspot, and you want to make it transparent, use
- Code: Select all
Action.LoadAPicture Hotspot(Hotspot_Number), ""
To load the image into the hotspot again, use
- Code: Select all
Action.LoadAPicture Hotspot(Hotspot_number), "Image_Name.Extension"
I hope this helps

-

Mystery
- Forum Admin and Games Page admin
-
- Posts: 2990
- Joined: Sat Feb 04, 2006 8:12 am
- Location: Switzerland
-
by Tony_LaRocca » Thu Feb 28, 2008 9:16 am
Thanks. Actually, I worked around it by creating a blank frame, had the video play in that, and returned to the previous frame a second after the video ended. But I appreciate the help and scripting knowledge!
-

Tony_LaRocca
- Member
-
- Posts: 34
- Joined: Wed Feb 20, 2008 4:14 am
by Mystery » Thu Feb 28, 2008 9:39 am
No problem
Yes, your solution is also fine

-

Mystery
- Forum Admin and Games Page admin
-
- Posts: 2990
- Joined: Sat Feb 04, 2006 8:12 am
- Location: Switzerland
-
by Lyberodoggy » Thu Feb 28, 2008 1:54 pm
Tony_LaRocca wrote:Thanks. Actually, I worked around it by creating a blank frame, had the video play in that, and returned to the previous frame a second after the video ended. But I appreciate the help and scripting knowledge!
That is the best solution in my opinion (let's make everything as simple as possible)

-

Lyberodoggy
- Administrator
-
- Posts: 2526
- Joined: Sat Feb 17, 2007 3:31 pm
- Location: Athens
Return to Adventure Maker General Discussion
Who is online
Users browsing this forum: No registered users and 0 guests