Mouse Interface

Started by King Erryz, Fri 06/07/2012 08:24:09

Previous topic - Next topic

King Erryz

Sorry for asking..i'm new here..

how to change the mouse interface when the move the cursor out of hotspot & when move from the hotspot,the mouse changing back to default cursor (pointer icon)

Khris

#1
Open Globalscript.asc, find the repeatedly_execute function, and in there, add:

Code: ags
  int mm = mouse.Mode;
  int lt = GetLocationType(mouse.x, mouse.y);
  int nm;
  if (lt == eLocationHotspot || lt == eLocationObject) nm = eModeInteract;
  else if (lt == eLocationCharacter) nm = eModeTalkto;
  else nm = eModeWalkto;
  if (nm != mm) mouse.Mode = nm;


edit: corrected code

SMF spam blocked by CleanTalk