Hi all, im having a problem making my sprite jump. The thing is my sprite is standing on 400 y. When i press the spacebar, i want my character to go up and come down in the same spot without calling timer if possible. just to let you know my situation. i am using a windowed GUI calling canvas and Jframe, and JPanel. So I think that threads in my case are not an option. to alivate some confusion here a some parts of the code.
If anyone is wondering why i did it this way it’s because i had to draw and move my sprite on the screen or windowed GUI.