Author Topic: Pong Game problem  (Read 299 times)


  • Newbie
  • Posts: 4
Pong Game problem
« on: November 24, 2020, 06:41:44 pm »
Hey, so i made a little Pong game for my assignment in school and it was working fine at first but i dont know if ive changed something or clicked something but now whenever i move the paddle it only moves if i have my mouse on top of it. Also i cant reach the right side of my screen for some reason, any help would be much appriciated.


  • Hero Member
  • *****
  • Posts: 4169
    • Bart en Mariska's Webstek
Re: Pong Game problem
« Reply #1 on: November 24, 2020, 10:19:38 pm »
You have set the Paddles OnMouseMove to ControlPaddle.
This, as the name implies, the code is fired when the mouse moves over the paddle.
If you want it to do so if you move the mouse over the form, then set the form's OnMouseVove to ControlPaddle as well (yes: 2 components can share the same event).



  • Hero Member
  • *****
  • Posts: 2183
Re: Pong Game problem
« Reply #2 on: November 24, 2020, 11:42:00 pm »

What kind of crazy newfangled fashion is this:
Playing Pong with a mouse??

Pong has to be  played with the cursor keys. If you got those modern keys.
Otherwise it was common to use these keys as cursor key block:
Z=up, G=left, J=right, B (or N) = down and H=shoot

That's why those keys were often ruined on the cheap keyboards of the early "PCs".

Back to the late 70s! And a cheers to Nolan Bushnell and the early Atari!



TinyPortal © 2005-2018