Problem with hotspot.

Started by abnaxus, Mon 31/05/2004 17:17:56

Previous topic - Next topic

abnaxus

I had a basic problem with click on hot spot. I draw a hotspot in a room editor. Then choose interaction and choose any click on hot spot. Then I pick run script, and insert script  "QuitGame(0)". It should close the game while clicking on it. Unfortunatley nothing is happening. I tryed to put there few other scripts but all don,t work. I tryed to cope a scripts from Demo Game but with the samne result. Mybe I am stupid or something is wrong with thet editor. Help, please.

SSH

How are you testing the game? Are you using the Test game menu option? Do you have debug mode set on?
12

Scorpiorus

First of all ensure that the script is attached to the any-click interaction - just open hotspot interaction, choose that already added RunScript option and click the Edit script... button to make it sure the script is there.

Another thing, is that any-click event isn't triggered if the mouse cursor is in walk mode.

Barbarian

I know this might seem silly to ask, but did you also remember to include the ";" with the command?
Such as "QuitGame(0);"   or alternatively you could have the Quit Dialog box pop up by using:
"QuitGame(1);"   
Conan: "To crush your enemies, see them driven before you, and to hear the lamentation of the women!"
Mongol General: "That is good."

Blade of Rage: www.BladeOfRage.com

SMF spam blocked by CleanTalk