I'm having some problems with a game i'm working on detecting key strokes.
this is my code so far
if(Key.isDown(Key.SPACE) and this.del<=0 and this.stat==1) {pickup()};
if(Key.isDown(Key.SPACE) and this.del<=0 and this.stat==2) {throwdot()};
if(Key.isDown(Key.LEFT)) {this.xmove-=this.speed};
if(Key.isDown(Key.RIGHT)) {this.xmove+=this.speed};
if(Key.isDown(Key.UP)) {this.ymove-=this.speed};
if(Key.isDown(Key.DOWN)) {this.ymove+=this.speed};
Arrow keys move the character around, and space picks stuff up, if you are already carrying something space will throw it.
everything works fine, unless you try to press three keys at once.
if you are carying something and moving diagonally it won't respond to pressing space, unless you are moving up and right, then it works fine.
anyone know how i can fix this? maybe there is a better command than isDown? i'm using Flash 5.