Mouse moves over hotspot/object? [SOLVED]

Started by Candle, Mon 07/02/2005 02:13:13

Previous topic - Next topic

Candle

Is there a  "Mouse moves over object"?
I want to change the mouse to look when it is  over an  object .

// script for hotspot1: Mouse moves over hotspot

SaveCursorForLocationChange();
SetMouseCursor(10);

Goot

You have to do:
if(GetObjectAt(mouse.x,mouse.y)==x){ //where x is the object
                                                                     //number
script here
}
in repeatedly execute (repeatedly execute always if you want)

Candle

#2
Thanks Goot , That would go in the main room script right .
Cool I'll give it a try .

Code: ags
if(GetObjectAt(mouse.x,mouse.y)==0){ //where x is the object
                                                                     //number
SaveCursorForLocationChange();
SetCursorMode(MODE_LOOK);

} 


Works great  thanks .

TerranRich

I have a simple, unrelated question. Why do you always put your spaces before your punctuation? Never seen that before. ;) :P
Status: Trying to come up with some ideas...

Candle

I have a twict (sp) sometimes my thumb will hit it and I don't even see it .
You should see the mouse sometimes move all over when my hand starts moving on its own . lol

TerranRich

Hah, my mouse does that, not because I twitch, but because it's an optical mouse being used on a fine, light-colored wooden grain desk. It always seems to jump to a random corner of the screen. :P
Status: Trying to come up with some ideas...

Candle

I have an optical mouse too. I use a  small cutting board I got at walmart for  my mousepad .:)
Works great that way .

SMF spam blocked by CleanTalk