Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: Run to destination continuously with many fast clicks  (Read 2755 times)

0 Members and 1 Guest are viewing this topic.

rkitting

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 44
    • View Profile
Run to destination continuously with many fast clicks
« on: July 28, 2008, 09:39:09 PM »

This has been done in many adventure games, like So Blonde, where if I click really fast (many doubleclicks after another) the character runs smoothly until it reaches it's new destination, which is set at every doubleclick.

In WME my character twitches, because it wants to start the "run" Animation every time I double-click.

In the Wintermute Demo Game "Art of Murder" the character just switches back and forth from walk to run to walk, etc. (1x walk 2x run 3x walk 4x run and so on).
Not sure if I want to use this way.

Anyone have any ideas?
Logged

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1456
  • Lamp dog!
    • View Profile
Re: Run to destination continuously with many fast clicks
« Reply #1 on: July 29, 2008, 06:22:26 AM »

You can check if the character run animation is running & if the player has clicked the same region. If both conditions are true you could skip doubleclick.
Logged
fl*p

rkitting

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 44
    • View Profile
Re: Run to destination continuously with many fast clicks
« Reply #2 on: July 29, 2008, 07:01:47 PM »

Well I was able to get it to work, but since I ignore further Leftclicks when the "run" Animation is playing I cannot cancel a running action or change direction while clicking further. So I must wait until he reaches his destination :(
Logged

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Run to destination continuously with many fast clicks
« Reply #3 on: July 29, 2008, 08:02:00 PM »

I'd solve it by making a little timer to disable super fast clicking. :)
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet
 

Page created in 0.034 seconds with 24 queries.