why hotspot are numbered?

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

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

why hotspot are numbered?

Postby indy2 » Thu Nov 15, 2012 7:06 pm

excuse for my poor memory ( I don't use AM from years)...

I don't remember why the hotspots are numbered...
it's only for code clarity or is for overlapping graphic hotspot order in the frame?

thanks ....

--------------------

italian version :

scusate per mia povera memoria ( non uso AM da anni)...

io non ricordo perch? gli hotspots sono numerati
? solo per individuarli nel codice oppur c'? un motivo di sovrapposizione ordinata di pi? hot spots nel frame?

e l'ordine com'? ? ossia : il clic del mouse genera un evento sul HS col numero piu alto o piu basso ( parlo di HS sovrapposti ).

grazie/thanks
indy2
Member
 
Posts: 31
Joined: Thu Nov 02, 2006 3:04 pm

Re: why hotspot are numbered?

Postby Simon » Fri Nov 16, 2012 11:59 am

Why not ? lol

Seriously, it's useful only if you have the full version of AM and want te make scripts : you can use the hotspot number with some code.

Example :

You have 2 hotspots in your frame : "hotspot 1" and "hotspot 2". You decided to add the following code :
Code: Select all
Hotspot(1).Enabled = False
Hotspot(2).Enabled = True


--> This allows you to desactivate hotspot 1 (if it was active) and ativate hotspot 2 (if it was not active)
It is useful to make puzzles, when you have many hotspots and want the player to click only on specific ones.

There are other codes that use the number, for example to change the picture inside the hotspot of your choice, but I don't remember them.
User avatar
Simon
Expert Member
 
Posts: 418
Joined: Sun Jun 10, 2012 1:47 pm
Location: France

Re: why hotspot are numbered?

Postby indy2 » Fri Nov 16, 2012 2:41 pm

ok , thanks for your information. 8)
indy2
Member
 
Posts: 31
Joined: Thu Nov 02, 2006 3:04 pm

Re: why hotspot are numbered?

Postby Simon » Fri Nov 16, 2012 2:55 pm

Glad I could help :mrgreen:
User avatar
Simon
Expert Member
 
Posts: 418
Joined: Sun Jun 10, 2012 1:47 pm
Location: France


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests