Stop Action Listener
I'm creating a game using a GUI. I have an action listener set up for when the user clicks the 'up', 'left', 'right', or 'down' Jbuttons. My avatar moves accordingly, but it continues to move after the button is selected. I want the avatar to move once for each click, rather than continue to move after being clicked once.
This is the code to move my avatar, for which ever button is selected.
Thanks for any help
Re: Stop Action Listener
You will probably have to show more code since the cause of your problem is not shown in the code posted. Also consider using a debugger or adding debug statements to your code to help you figure out the state of the program as it's running.