Need a bit help on menu sceen

Started by InCreator, Sat 24/04/2004 22:54:03

Previous topic - Next topic

InCreator

Well, my problem is simple.
I made a main menu screen. There's menu options and little lights next to each item. Menu items are hotspots and lights near them are objects. Which turn on when mouse moves onto menu item. Like this:


To say simply, I use "Mouse moves over hotspot" condition and turn objects on and off from scripts.
Problem is, that there's latency! Somehow, it's possible to move mouse from one menu item to another but light doesn't change! Or gets late. Is it a problem in AGS ittself in having slow object routlines or bad Mouse moves over hotspot script or is there just some better way to get instant change?
Maybe it belongs to tech forum. But I'm not sure yet.
(My machine itsself is okay, game runs at 16-bit 640x480 on 1,4 GHz and 128 MB RAM/16MB video, so it isn't because my cpu)


jetlag

Do you use an animating cursor?
I had that once. I solved it by using IsMouseOverHotspot in repeated execute.

InCreator

Yes, animated. No, I didn't find such function as IsMouseOverHotspot, altough it sounds familiar. Older AGS versions maybe?

Ashen

You could try using

if (GetHotspotAt (mouse.x, mouse.y == 1) {
 ....
}
if (GetHotspotAt (mouse.x, mouse.y == 2) {
 ....
}

etc., instead of the 'Mouse Over Hotspot' interaction.

Hope this helps.

InCreator

Yes, a bit correcting and thinking at it worked!
Thanks, Ashen!  :)

SMF spam blocked by CleanTalk