So what I have right now my player can move up down left right using wasd but I cant figure out how to allow the player to move diagonally. I am using KeyEvent and a switch statement.
Also for the timer I have tried many different things but I cant figure out what timer to use-- I want it to count from when the program starts, and be displayed using the timeLabel JLabel
what Im trying to get to right now is just the red dot following the player who has to avoid the red dot--also I am unable to figure out a way to make the red dot move without making the player unable to move. Right now i just have it to where it updates when the graphics component is repainted, which happens when the player presses a button