I want my ship fly when i press “W”.
I have another code that works:
if (key.isDown(Key.UP)){
this._y += 2;
}
But now I not want to press “up”, i want to press “W”!
How can i do that?..
I want my ship fly when i press “W”.
I have another code that works:
if (key.isDown(Key.UP)){
this._y += 2;
}
But now I not want to press “up”, i want to press “W”!
How can i do that?..
:: Copyright KIRUPA 2024 //--