Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Thu 27/04/2006 17:17:04

Title: Change Cursor on hover (SOLVED)
Post by: on Thu 27/04/2006 17:17:04
Sorry to bother you guys with such a basic question, and one that has been answered in many different forms in other threads, however I am no scripter and try as I might I just can't seem to get this one down:

All I want is for when the mouse is hovered over certain hotspots that the cursor image will change to one of the other specificed cursor images.

I will be doing this via the Interaction Editor, and so when we run the script for 'Mouse moves over hotspot' I don't know exactly what/how I write (well, I don't know exactly what script command to call for this either) here to get the desired result.

I know it's fairly basic, but once I have this spelt out for me, a lot of my other issues with scripting will be resolved.
Title: Re: Change Cursor on hover
Post by: Ashen on Thu 27/04/2006 17:24:07
I'm fairly certain this can't be done via Interaction Editor commands, if that's what you were asking.
Take a look at the mouse.SaveCursorUntilItLeaves() (http://www.adventuregamestudio.co.uk/manual/Mouse.SaveCursorUntilItLeaves.htm) function, it should be what you need (along withmouse.UseModeGraphic).
Title: Re: Change Cursor on hover (SOLVED)
Post by: on Fri 28/04/2006 15:55:22
Ahhhh. That's exactly what I was after. For some reason I hadn't been able to find those functions in the manual.  :-[ Just need to familiarise myself with all the functions a bit more, it seems.

Thank you muchly!  :D