Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: barefoot on Wed 16/06/2010 12:04:18

Title: Keypress setwalkspeed: smoother option
Post by: barefoot on Wed 16/06/2010 12:04:18
Hi

I have set up a character SetWalkSpeed on Keypress in the GlobalScript asc which works but is there a setting which will make it more smoother instead of jolting?

I'm not over concerned as it is negotiable, just knowledge seeking for improvement.


if (keycode==eKey4) {
 
  cindy_bones.SetWalkSpeed(20, 20);
 
  }


cheers

barefoot
Title: Re: Keypress setwalkspeed: smoother option
Post by: Khris on Wed 16/06/2010 12:47:19
The WalkSpeed is the amount of pixels the character moves in between frames. To make a character faster, one should decrease Character.AnimationSpeed (which is the number of game loops between frames).
Title: Re: Keypress setwalkspeed: smoother option
Post by: barefoot on Wed 16/06/2010 13:30:37
Thank you Khris   :=

barefoot