Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: PsychicHeart on Tue 09/08/2005 07:45:35

Title: One Cursor Interface
Post by: PsychicHeart on Tue 09/08/2005 07:45:35
Hey,
this is probably a rather i dunno, novice question, but how do i make it so that i if i only use one cursor, if i press the left click i move, and if i press the right i interact? If you need an example, IceMan's game DaNewGuys.

Cheers,
Blake.
Title: Re: One Cursor Interface
Post by: Dr Lecter on Tue 09/08/2005 09:42:14
You can do this straight from the global script.
Go down to where it says:
#sectionstart on_mouse_click  // DO NOT EDIT OR REMOVE THIS LINE
Then look for the line with the comment // right-click, so cycle cursor.
The line below is the line we want to edit.
It should say
mouse.SelectNextMode();
Replace it with
ProcessClick(mouse.x, mouse.y, eModeWalkto );

Also finally, a couple of lines above you should see the line:
ProcessClick(mouse.x, mouse.y, mouse.Mode );
Replace the
mouse.mode
with
eModeInteract
Title: Re: One Cursor Interface
Post by: PsychicHeart on Tue 09/08/2005 10:33:12
Thanks.