if (GetCursorMode==WALK_MODE)

Started by Alynn, Mon 24/11/2003 17:00:19

Previous topic - Next topic

Alynn

I have that line of code in a any click interaction on a hotspot.

I have a 2 floor room with a stairwell I made sure it worked on any interaction with the hotspot I then added the ifcheck to make it only fire on walk... BUT it does fire. It just walks to the nearest place on the first floor...

Is there anyway to counter this?

Ishmael

I remember reading something about a game.cursormode_used or similiar way to check the used mode... The any click interaction isnt fired by the walk mode, AFAIK, unless you use a custom walkto command, and have checked the "Dont automatically move character in walk mode" in the General settings...
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.

Alynn

Ok, I checked Dont move character and added this into my on_mouse_click function unter the Left click

if (GetCursorMode()==0){
     MoveCharacterPath(0, mouse.x, mouse.y);
}

Now he walks where you click, and does those special things :)

Thanks TK (Can't believe I didnt see that option before)

SMF spam blocked by CleanTalk