One Cursor Interface

Started by PsychicHeart, Tue 09/08/2005 07:45:35

Previous topic - Next topic

PsychicHeart

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.
Formerly known as Flukeblake, Flukezy etc.

Dr Lecter

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
Code: ags
mouse.SelectNextMode();

Replace it with
Code: ags
ProcessClick(mouse.x, mouse.y, eModeWalkto );


Also finally, a couple of lines above you should see the line:
Code: ags
ProcessClick(mouse.x, mouse.y, mouse.Mode );

Replace the
Code: ags
mouse.mode

with
Code: ags
eModeInteract

PsychicHeart

Formerly known as Flukeblake, Flukezy etc.

SMF spam blocked by CleanTalk