Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length.
 
Entire Forum
This board
This topic
Members
Entire Site
Home
FAQ
Help
Bug and Suggestion Tracker
Search
AGS Wiki
AGS Games
Login
Register
Adventure Game Studio | Forums
|
AGS Support
|
Beginners' Technical Questions
(Moderator:
Iceboty V7000a
) |
Topic:
Mouse Interface
« previous
next »
Print
Pages: [
1
]
Author
Topic: Mouse Interface (Read 324 times)
Tweet
Share
King Erryz
Mouse Interface
«
on:
06 Jul 2012, 08:24 »
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)
Logged
Khris
Evil Dark Emperor Death-Kill
Re: Mouse Interface
«
Reply #1 on:
06 Jul 2012, 08:41 »
Open Globalscript.asc, find the repeatedly_execute function, and in there, add:
Code: Adventure Game Studio
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
«
Last Edit: 07 Jul 2012, 07:31 by Khris
»
Logged
http://whathaveyoutried.com/
The other day on yahoo answers:
"Can you print colored images with black ink? If so tell me how please Thanx Kimberly"
Print
Pages: [
1
]
« previous
next »
Adventure Game Studio | Forums
|
AGS Support
|
Beginners' Technical Questions
(Moderator:
Iceboty V7000a
) |
Topic:
Mouse Interface