Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: InCreator on Sat 24/04/2004 22:54:03

Title: Need a bit help on menu sceen
Post by: InCreator on Sat 24/04/2004 22:54:03
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:
(http://www.hot.ee/increatorgamez/menuscr.png)

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)

Title: Re:Need a bit help on menu sceen
Post by: on Sat 24/04/2004 23:04:39
Do you use an animating cursor?
I had that once. I solved it by using IsMouseOverHotspot in repeated execute.
Title: Re:Need a bit help on menu sceen
Post by: InCreator on Sat 24/04/2004 23:08:51
Yes, animated. No, I didn't find such function as IsMouseOverHotspot, altough it sounds familiar. Older AGS versions maybe?
Title: Re:Need a bit help on menu sceen
Post by: on Sat 24/04/2004 23:14:48
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.
Title: Re:Need a bit help on menu sceen
Post by: InCreator on Sat 24/04/2004 23:43:21
Yes, a bit correcting and thinking at it worked!
Thanks, Ashen!  :)