Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: "LeftDoubleClick"  (Read 3827 times)

0 Members and 1 Guest are viewing this topic.

A.Y.

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 27
    • View Profile
    • http://www.free-lance.ru/users/Yar/info/
"LeftDoubleClick"
« on: June 12, 2006, 12:48:39 PM »

I need the actor, on "LeftDoubleClick", executing "actor.SkipTo(Scene.MouseX,  Scene.MouseY);".

/////in scripts\game.script
on "LeftDoubleClick"
{
      Scene.ApplyEvent("LeftDoubleClick");
}

/////in scripts\scene.script
on "LeftDoubleClick"
{
  // when the scene is left-clicked, just send the actor to the specified point
  actor.SkipTo(Scene.MouseX, Scene.MouseY);
}
on "LeftClick"
{
  // when the scene is left-clicked, just send the actor to the specified point
  actor.GoTo(Scene.MouseX, Scene.MouseY);
}

But the actor еxecutes action, and then comes back to performance of the previous action.
What can I correct it?

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: "LeftDoubleClick"
« Reply #1 on: June 12, 2006, 02:30:40 PM »

Try calling actor.Reset() before actor.SkipTo(), that should cancel the walking.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

A.Y.

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 27
    • View Profile
    • http://www.free-lance.ru/users/Yar/info/
Re: "LeftDoubleClick"
« Reply #2 on: June 16, 2006, 11:09:03 AM »

thank you, very much.
 

Page created in 0.03 seconds with 19 queries.