How do I make "exit" cursor?

Started by InCreator, Tue 06/04/2004 21:21:03

Previous topic - Next topic

InCreator

Hm. I noticed some games have their cursors changing to an "exit" sign or directional arrow, when pointing them over place which makes character change room. How to make such thing? I tried with hotspots and change cursor to usermode1 when "Mouse cursor over area" and cursormode is "walk" but mouse stays that way after removing it from hotspot. Is there any script commands to determine is mouse over specific hotspot (and if not), or is there at least any simpler way to do this?

Scorpiorus

In the current beta version of AGS there is a function: SaveCursorForLocationChange();

so you can type-in:

on mouse over hotspot:

SaveCursorForLocationChange(); // save current cursor
SetCursorMode(8); // show exit cursor

that will help to restore it back to the original cursor

Hollister Man

Or, for that matter, you could use your hotspots to make a narrow border around the main hotspot, and set that one up to revert the cursor to walk.  

Lets say you have a circle of HS1 and a border around it of HS2.  When the cursor hits HS1, it turns on the exit cursor, and when it hits HS2 it reverts back to he original walk cursor.
That's like looking through a microscope at a bacterial culture and seeing a THOUSAND DANCING HAMSTERS!

Your whole planet is gonna blow up!  Your whole DAMN planet...

InCreator

Thanks.
Actually i don't like using hotspots at all, but there seems to be no way doing this with edges. Well, I plan my game to have 2-3 rooms able to walk through per map location, so I think I'll do with hotspots.

SaveCursorForLocationChange(); was something I had no idea about, 2 hotspot use seems just clever. I'll see which I use. Thanks again.

SMF spam blocked by CleanTalk