I'm totally new to Game Dev. and i wanna say "its not difficult", but sometimes i get stuck in tiny holes with nothing to dig my way out.
Basically, I've been following this Java OpenGL (using JOGL) 2D series on YouTube for a while, as an attempt at my first game in java. But clearly its not going well.
I followed the series up till episode 18, but after that; in episode 19, the tutor had implemented a KeyListener in order to move the player around.
I did the same thing he did, but when i hold down the up/down/right or left key, the player moves for a bit but stops after like 2 seconds. For it to move again, i have to release the key and hold it down again.
I personally think this is a problem with JOGL (the library I'm using). But would like to have a solution to the problem since I have already gone through the trouble of making an entire game engine.
Anyways, here's the link to the video:
Java OpenGL 2D Game Tutorial - Episode 19 - Player Input
The code i used for player input is exactly similar to the one used by the tutor!
Thanks...