mouse mode switch

Started by Alaskaban, Sun 14/07/2013 19:30:34

Previous topic - Next topic

Alaskaban

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?

Khris

Assuming you aren't using the empty game template, the proper command is:
Code: ags
  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.

Alaskaban


SMF spam blocked by CleanTalk