Keypress setwalkspeed: smoother option

Started by barefoot, Wed 16/06/2010 12:04:18

Previous topic - Next topic

barefoot

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.

Code: ags

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


cheers

barefoot
I May Not Be Perfect but I Have A Big Heart ..

Khris

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).

barefoot

I May Not Be Perfect but I Have A Big Heart ..

SMF spam blocked by CleanTalk