Animating Cursors slowing down mouse moves over hotspot

Started by Goot, Sun 11/07/2004 08:48:58

Previous topic - Next topic

Goot

In my game I have all the cursors animating. On the main screen, when you move the cursor over a button, it turns an object on in front of it, turning it black. Then when you move the cursor away, it turns it off. This has worked fine, until I got the cursors animating. It now takes a really long time to turn the objects on and off, and you have to move the cursor around alot to get it to go. The only time it works is when you do it with an inventory item (not animating). All the hotspots are marked with a red dot on the normal cursors and all the frames for the animating are the same size, and the red dot is positioned in the same place relative the the frame. I have not changed any thing in the actual mouse over script. Does anyone know why this might be happening?

EDIT: I've experimented with it a little more and it only seems to turn the objects on when the cursor is in the first frame of the animating and it's moving. I still have no idea of how to fix this.

Scorpiorus


Goot

I used ObjectOn(); and ObjectOff(); What else would I use?
It was working fine before I added the animating cursors.

Scorpiorus

So, you just use the mouse over hotspot interaction and put the code there? It might be a bug, any chance you can upload a test game for us to take a look?

Goot

 What do you want to take a look at? A made a test game to test the problem. I had a cursor animate with roger's animation. (Animating at all times, not just when over a hotspot or object). I made one hotspot. In the mouse over script: ObjectOn(0);
for hotspot 0 in the mouseover script: ObjectOff(0); (In the real game I used another hotspot instead of hotspot 0.) It still had the same problem. The object would only turn on and off when the cursor was in frame 1 and moving. I think this is a bug in AGS.

EDIT: I've solved the problem. You have to use:
if(GetHotSpotAt(mouse.x,mouse.y)==x){
ObjectOn(x);
}
Don't ask me why.

SMF spam blocked by CleanTalk