Thread: Dashing/Running
View Single Post
  #8  
Old 04-28-2009, 07:48 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
HTML Code:
function GraalControl.onKeyDown(keycode) {
  if (timevar2 < this.keydash) {
    if (player.olddir == player.dir) {
      player.movemode = WALKDASH;
    }
  }
}

function GraalControl.onKeyUp() { 
  this.keydash = timevar2 + 0.1;
}
With the movement system I am using, it works a charm. Thanks Chompy =D
Reply With Quote