How to hide hotspots?

This forum is meant for requesting technical support or reporting bugs.

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

How to hide hotspots?

Postby Candle » Mon Oct 10, 2005 9:57 pm

I found disable hotspot but not hide.
Do we have a hide hotspot till something is done?
Like to use INV1 item on hotspot1 and have hotspot2 unhide and hotspot1 hide.
Please don't PM me questions, ask here in the forums!
``````````````
Between grand theft and a legal fee, there only stands a law degree.
User avatar
Candle
Administrator
 
Posts: 3055
Joined: Sat Feb 07, 2004 2:21 am
Location: Rudy's Bar

Postby GM-Support » Tue Oct 11, 2005 8:59 pm

Hi Candle,

Hiding and disabling a hotspot are the same thing. We use the word "disable" when the appearance of the hotspot is set to "transparent", and "hide" when the appearance of the hotspot is set to "picture".

Please let me know if it is still not very clear.

Best regards,
GM-Support
GM-Support
Forum Admin and Games Page admin
 
Posts: 2221
Joined: Thu Jun 05, 2003 7:52 pm

Postby Candle » Tue Oct 11, 2005 9:15 pm

Iv'd tried Hotspot(1).Enabled = False in the frames properties and Hotspot(1).Enabled = False in the projects properties.
And when I run the game I can see the picture (hotspot1).
What do I have wrong?
Please don't PM me questions, ask here in the forums!
``````````````
Between grand theft and a legal fee, there only stands a law degree.
User avatar
Candle
Administrator
 
Posts: 3055
Joined: Sat Feb 07, 2004 2:21 am
Location: Rudy's Bar

Postby GM-Support » Tue Oct 11, 2005 11:57 pm

Oh, sorry, if you are talking about scripting, then you must use the .visible property:

Code: Select all
Hotspot(1).visible=false
Hotspot(1).visible=true


However, I'm not sure it will work fine because the visibility is automatically refreshed depending on the value of the variables. To be sure it will work, I suggest moving the hotspot out of the frame in order to make it disappear. Here is the code:

Code: Select all
hotspot(1).move 640x15, 480x15


A better solution would be to set the hotspot to be visible only if VARIABLE=0 (from the "variables" tab of the hotspot properties), and then change the value of the variable to 1 when you want to hide the hotspot. Make sure that you execute the command Action.UpdateHotspotsState if you change the value of the variable and you want to immediately reflect the changes. You will find more info on that function on:
http://www.adventuremaker.com/help/vbsc ... erence.htm

Best regards,
GM-Support
GM-Support
Forum Admin and Games Page admin
 
Posts: 2221
Joined: Thu Jun 05, 2003 7:52 pm

Postby Candle » Sat Dec 31, 2005 10:30 pm

Just to let you know these don't work .
Code: Select all
Hotspot(1).visible=false
Hotspot(1).visible=true

Not sure why they don't work but they don't .
Please don't PM me questions, ask here in the forums!
``````````````
Between grand theft and a legal fee, there only stands a law degree.
User avatar
Candle
Administrator
 
Posts: 3055
Joined: Sat Feb 07, 2004 2:21 am
Location: Rudy's Bar

Postby GM-Support » Sat Dec 31, 2005 11:04 pm

Hi,

It must be due to the fact that AM automatically updates the visibility of the hotspots so that the conditions set under the "variables" tab of the Hotspot Properties are always met.

To solve the problem, a workaround consists in moving the hotspot outside of the game area, by using the following command:

Code: Select all
Hotspot(1).move LEFT*15, TOP*15, WIDTH*15, HEIGHT*15


Best regards,
GM-Support
GM-Support
Forum Admin and Games Page admin
 
Posts: 2221
Joined: Thu Jun 05, 2003 7:52 pm

Postby Candle » Sat Dec 31, 2005 11:28 pm

And to show it again just move it back to where you want it I would guess right?
Please don't PM me questions, ask here in the forums!
``````````````
Between grand theft and a legal fee, there only stands a law degree.
User avatar
Candle
Administrator
 
Posts: 3055
Joined: Sat Feb 07, 2004 2:21 am
Location: Rudy's Bar


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 1 guest

cron