Thanks Khris.
I could only change the property nr to 0 or 1 cause it was boolean.
Now I changed the type to number and it works.
I had only to add a i > 0 instead of i ==1 and change the exit number for no exit hotspots to 0...
int old_e;
// put anything you want to happen every game cycle in here
function repeatedly_execute()
{
Hotspot*h = Hotspot.GetAtScreenXY(mouse.x, mouse.y);
int e = h.ID;
if (e != old_e) { // mouse moved over hotspot or left one
old_e = e;
int i = h.GetProperty("exit"); // read entered number
if (e == 0) mouse.ChangeModeGraphic(mouse.Mode, 2); // default cursor graphic
else if (i == 0) mouse.ChangeModeGraphic(mouse.Mode, 2); // mouse over hotspot but not exit
else if (i > 0) mouse.ChangeModeGraphic(mouse.Mode, 4 + i); // change to arrow
Thanks a lot.
I could only change the property nr to 0 or 1 cause it was boolean.
Now I changed the type to number and it works.
I had only to add a i > 0 instead of i ==1 and change the exit number for no exit hotspots to 0...
int old_e;
// put anything you want to happen every game cycle in here
function repeatedly_execute()
{
Hotspot*h = Hotspot.GetAtScreenXY(mouse.x, mouse.y);
int e = h.ID;
if (e != old_e) { // mouse moved over hotspot or left one
old_e = e;
int i = h.GetProperty("exit"); // read entered number
if (e == 0) mouse.ChangeModeGraphic(mouse.Mode, 2); // default cursor graphic
else if (i == 0) mouse.ChangeModeGraphic(mouse.Mode, 2); // mouse over hotspot but not exit
else if (i > 0) mouse.ChangeModeGraphic(mouse.Mode, 4 + i); // change to arrow
Thanks a lot.