it's lpMove (capital M)
That is the correct code, and you did put it in the right place. The second fragment is to not move the paddle if it's at one of the bounds (don't move up at the top bound,...
Type: Posts; User: helloworld922
it's lpMove (capital M)
That is the correct code, and you did put it in the right place. The second fragment is to not move the paddle if it's at one of the bounds (don't move up at the top bound,...
Ok, here is a good way to use keylisteners in a game:
Say you wanted W to move the left paddle up, and S to move it down. So, every time the keypressed method is executed, we would want to compare...