Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: metalmario991 on Sun 01/03/2015 20:47:27

Title: Locking the Cursor
Post by: metalmario991 on Sun 01/03/2015 20:47:27
I wanted to know if there is a way to lock the cursor on one specific type. For example, when the player dies and gets the Death Screen how do I make it so they can only use the Pointer cursor?
Title: Re: Locking the Cursor
Post by: NickyNyce on Sun 01/03/2015 21:01:24
Code (ags) Select
  mouse.DisableMode(eModeTalkto);
  mouse.DisableMode(eModeLookat);
  mouse.DisableMode(eModeWalkto);
  mouse.DisableMode(eModeInteract);
  mouse.UseModeGraphic(eModePointer);


and this when you're done...

Code (ags) Select
  mouse.EnableMode(eModeLookat);
  mouse.EnableMode(eModeWalkto);
  mouse.EnableMode(eModeTalkto);
  mouse.EnableMode(eModeInteract);
  mouse.UseModeGraphic(eModeInteract);
Title: Re: Locking the Cursor
Post by: metalmario991 on Sun 01/03/2015 22:34:21
Thank you.