So, I'm guessing that it's NOT based on the user clicking on the hotspot???
disabling a hotspot doesn't make it invisible, it just makes it so whatever action is supposed to occur when the player clicks on it, doesn't happen anymore.
What you want to do is set a variable in the "FRAME" properties. This way you know the player has visited this particular frame.
- Code: Select all
If visitedFrameX = 1 Then
Hotspot(1).enabled = false
action.loadapicture hotspot(1), ""
End If
Option 1: hide and disable the hotspot
- Code: Select all
If visitedFrameX = 1 Then
Hotspot(1).enabled= false
hotspot(1).picture = nothing
End If
Option 2: hide and disable the hotspot
- Code: Select all
If visitedFrameX = 1 Then
Hotspot(1).enabled = false
hotspot(1).visible = false
End If
Option 3: hide and disable the hotspot
- Code: Select all
If visitedFrameX = 1 Then
Hotspot(1).move 10000*15,10000*15
End If
Option 4: move the hotspot off the screen
Interestingly, none of these have an effect on a animated gif. (at least not in Windows 7)This tells me that AM is adding another control behind the scenes for the gif. So, in this case, I see two alternatives:
1. go to a matching frame that doesn't have the gif image if the player has already visited the frame with the gif image.
You will set a variable in the gif frame properties so you know they have visited that frame. In any other frame that allows them to return, check the variable and see if they have visited it.
2. don't use an animated gif, but use a video in a hotspot instead. There are tools that will convert animated gifs to video formats. This is my choice. I don't like using a lot of replicated frames. I think its messy and confusing to maintain.