Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Mehrdad on Thu 28/10/2010 17:34:40

Title: Run player with double click!!!
Post by: Mehrdad on Thu 28/10/2010 17:34:40
Hi

Is it possible?Run player in scene(change view) with DOUBLE CLICK.!!!
Title: Re: Run player with double click!!!
Post by: Mehrdad on Sat 06/11/2010 15:38:13
Hello again

isn't really any answer???
please see Wretcher  game (AGS game).you can run with double click.

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=40687.0

how do i do that?

Title: Re: Run player with double click!!!
Post by: Matti on Sat 06/11/2010 16:09:47
I could think of a few ways, but honestly I'm too hangoverish to elaborate on that right now. Why don't you PM Alan v.Drake and ask him how he did it?
Title: Re: Run player with double click!!!
Post by: Khris on Sat 06/11/2010 17:44:11
With DOUBLE CLICK.!!! :D (sorry, just messing with you)

Did you try doing this yourself? Detecting a double click is not hard, and there are threads already dealing with this.
Making the character run is much easier, just use something like
  player.ChangeView(RUNVIEW);
  player.SetWalkSpeed(10, 7);


Seriously, you've been using AGS for years now, do we need to give you the complete, working code? And why are you asking if it is possible if somebody else already did it in an AGS game?
Title: Re: Run player with double click!!!
Post by: Dualnames on Sat 06/11/2010 18:04:03
Keep in mind that the player has to be stationary(not moving) when you change his walk speed. Otherwise you'll get a nice crush.  ;)