I know this has been touched on a few times in other posts but I am having some difficulty getting it to work.
If I understand the process properly, to affect the visibility of a hotspot I use the code:
Hotspot(x).visible = true -- to make it visible and
Hotspot(x).visible = false -- to make it invisible.
I attempted a quicky test before dashing off to work this evening but no matter what I tried, the hotspot(x) remained visible.
This is the code I used:
- Code: Select all
If HSvalue = 1 then
Hotspot(2).visible = true
Else Hotspot(2).visible = false
end if
I put the script in the advanced tab of the frame properties and tested by running a 'test frame' and manually changing the value of HSvalue with the debug option.
I'm darned if I can figure out what is going wrong, the code seems so simple. BTW, I know it is easier to use the variables tab but I am in desparate need of ways to reduce the variable load of my game so that a saved game will reload in a reasonable amount of time.
Skye