Original Post
I'm a relative beginner to programming(less than a year in a starting course), and I've run into a bit of a wall in a program I'm making.
Okay, so I'm making a game based off of the original Donkey Kong games and I'm trying to make the KeyListener's delay(the whole "w...wwwwww" thing) go away and I've come up with a great idea, but the only problem is that I need a method go() that is constantly being applied and not just applied when an event is fired, which would constantly apply changes in a variable controlling the x position, and allow for smooth movement(ideally). I just can't seem to figure out how to get a method to run continuously while other methods are still active...would it be something using threads? Is it even possible? Any help would be greatly appreciated.
Okay, so I'm making a game based off of the original Donkey Kong games and I'm trying to make the KeyListener's delay(the whole "w...wwwwww" thing) go away and I've come up with a great idea, but the only problem is that I need a method go() that is constantly being applied and not just applied when an event is fired, which would constantly apply changes in a variable controlling the x position, and allow for smooth movement(ideally). I just can't seem to figure out how to get a method to run continuously while other methods are still active...would it be something using threads? Is it even possible? Any help would be greatly appreciated.