Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Alaskaban on Sun 14/07/2013 19:30:34

Title: mouse mode switch
Post by: Alaskaban on Sun 14/07/2013 19:30:34
I was working on a game and I needed the cursor to change to the pointer. I was able to script in the mode but then I need to put the int slot.
What does that mean?
Title: Re: mouse mode switch
Post by: Khris on Sun 14/07/2013 20:05:36
Assuming you aren't using the empty game template, the proper command is:
Code (ags) Select
  mouse.Mode = eModePointer;
You're trying to call mouse.ChangeModeGraphic() I guess, which should only be done if you still want the mouse to act according to its mode, but look different.

The "int slot" part refers to the sprite's index number, as shown in the Sprite manager. You use that to tell AGS which image of your imported ones you want to use.
Title: Re: mouse mode switch
Post by: Alaskaban on Mon 15/07/2013 04:19:00
thankyou