I have two questions about Assignment 5. The first one is about the timer. When I add the code for starting the timer, the drawn basket and launcher dissapear. I don't know what I did wrong there. I put a screenshot of my codes in here.
The second question is about calling to the methods for moving the basket with the left and right Arrow keys. I have the following code, but it doesn't work:
// calling for the left and right method to move the basket with the left and right arrow keys
if (e == 37) panel.left(); // 37 is the keycode from the left Arrow button
else if (e == 39) panel.right(); // 39 is the keycode from the right Arrow button
Where did I make a mistake?