Can someone check why this script
doesn't make the player run fasten when he presses A rapidly?
if (playerenters) {
timeout=.05;
this.allowed=1;
}
if (timeout) {
if (playersprite in |1,8|&&this.allowed==1&&keydown(5)) {
this.allowed=0;
if (playerdir==0&&!onwall(x,y)) {playery--;}
if (playerdir==2&&!onwall(x,y+2.5)) {playery++;}
if (playerdir==1&&!onwall(x,y)) {playerx--;}
if (playerdir==3&&!onwall(x+2.5,y)) {playerx++;}
}
if (timeout&&!keydown(5)) {
this.allowed=1;
}
timeout=.05;
}
Pleeeeeaaaaassssssseee!
