Interrupting an Action Mid-Walk

Started by Rex Mundane, Wed 20/01/2010 15:48:07

Previous topic - Next topic

Rex Mundane

Hi, I'm new to this and keen to learn, and I'm sure there's an easy answer to this that I just don't know yet, so apologies if its painfully obvious.

How should I code it such that interacting with a hotspot or talking to an NPC moves the player character to the WalkToPoint, but keeping the mouse active such that, say, I change my mind mid-stroll and want to walk somewhere else or open the inventory or something, I can still do that.

I tried: "cEgo.Walk(200, 300, eBlock, eWalkableAreas);" in the room event code, duplicating the effect of just setting the WalkToPoint, which turns the mouse into the wait cursor, so I tried changing it to 'eNoBlock', but then ego isnt walking long enough to even turn around before the rest of the script executes.

Ideally, clicking interact anywhere in the hotspot will produce the effect of clicking the WalkTo cursor on (200, 300), then, when reaching it, executing the remainder of the script, and I can't tell if this is a really simple thing to change or a really complicated one.

Danman

#1
This is painfully obvious  ;D . Just change eBlock to eNoBlock. and solved.

Edit: sorry never read the whole thing  :-[

Ok I just tested it. I can see your problem.
I am sure there is an easy solution.





SMF spam blocked by CleanTalk