Thank you. I found it, the problem was right there :
public void toggleKey(int keyCode, boolean isPressed) {
if (keyCode == KeyEvent.VK_W) {
up.toggle(true);
}
if (keyCode ==...
Type: Posts; User: Kamrava
Thank you. I found it, the problem was right there :
public void toggleKey(int keyCode, boolean isPressed) {
if (keyCode == KeyEvent.VK_W) {
up.toggle(true);
}
if (keyCode ==...
I mean it does not have any syntax errors. It runs without any problems. But when the screen shows up it must move through W,A,S,D keys but won't work.
I can't explain more... :(
It run successfully. There is a logical problem
Hi there.
I'm new on java.
I'm following Zephyr Java 2D Game video tutorials on youtube.
Problem :
It should move the screen when i pressing W,A,S,D keys, but won't work. Please have look...