Disable Walk Mode

Started by FrasierCrane, Sat 12/08/2006 14:02:22

Previous topic - Next topic

FrasierCrane

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?
"Who dares enter the dark labyrinth of the human mind?"

Ishmael

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.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

FrasierCrane

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.  :)
"Who dares enter the dark labyrinth of the human mind?"

SMF spam blocked by CleanTalk