Walking on a Hotspot (Solved)

Started by bustee, Sat 22/09/2012 12:10:14

Previous topic - Next topic

bustee

This is probably simple, but I cannot figure it out.

I'm using the Lucas Arts template and want to cover the whole floor in a room with different hotspots. The reason is that some of the hotspots are usable with items, but I don't want to give away these locations by being the only hotspots visible.

The problem is that the character now never moves anywhere, when I click goto and on the floor. I also don't want a fixed point as walk to, but the current cursor position.

Any ideas?

Khris

Add this to each of the hotspots:

Code: ags

  (else) if (UsedAction(eMA_WalkTo)) {
    player.Walk(mouse.x, mouse.y);
  }

bustee

Thanks! Works like a charm

I couldn't find that command (probably because I thought it would start with eGA_ ). So I tried with mouse.Mode but that didn't help.

Is there a reason this has eMA as prefix and not eGA?


Khris

Yes, it's a Meta action, as opposed to a GUI action.
All available actions are listed when you type "UsedAction(".

SMF spam blocked by CleanTalk