Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: FrasierCrane on Sat 12/08/2006 14:02:22

Title: Disable Walk Mode
Post by: FrasierCrane on Sat 12/08/2006 14:02:22
Hello,

I'm new to AGS and hope that someon can help me.

I want that my character, who stands on hotspot 1, should do a script command I wrote by clicking on hotspot 2. I put the script in"Any click on hotspot", but this only works when the character uses some other mode but the walk mode. However, I also want that the script gets used by clicking with the Walk mode on the hotspot. So I tried to write in "Mouse moves over hotspot" mouse.DisableMode (eModeWalkto); and mouse.mode = eModeTalk (or something else) but this also doesn't work. Can someone tell me, how to do it?
Title: Re: Disable Walk Mode
Post by: Ishmael on Sat 12/08/2006 14:26:58
In the General Settings there's a checkbox for making AGS treat the walk mode just as the look mode, but if you check it you'll need to do your own walk to command, using the on_mouse_click global function and the Character.Walk command.
Title: Re: Disable Walk Mode
Post by: FrasierCrane on Sat 12/08/2006 16:01:27
Thank you very much, now it works. I think I have to learn to think in that big "Global Script" dimensions to make a game that somehow works.  :)