Moving assistance
in
Programming Questions
•
1 year ago
void keyPressed(){
switch(key) {
case('w'):case('W'):y-=5; break;
case('d'):case('D'):x+=5; break;
case('s'):case('S'):y+=5; break;
case('a'):case('A'):x-=5; break;
}
}
This is to move a square, but when ever you hold a certain button, it has a little pause between the first and second move. Any way to bypass that?
1