Computer Science Canada Pong Remake (Player2's Paddle won't show) |
Author: | cptcool [ Fri Mar 28, 2008 12:10 pm ] | ||
Post subject: | Pong Remake (Player2's Paddle won't show) | ||
Hey, recently I have been trying to recreate the game pong and ran into some trouble showing the second player. I was wondering if someone would be so kind as to tell me what I did wrong. Help is appreciated. Thanks in advance
|
Author: | michaelp [ Fri Mar 28, 2008 3:04 pm ] |
Post subject: | RE:Pong Remake (Player2\'s Paddle won\'t show) |
Since your loop for your player 1 loop is first, it stays in that loop and never reaches the second loop where player 2 is blitted onto the screen. |
Author: | Sean [ Fri Mar 28, 2008 4:17 pm ] |
Post subject: | Re: Pong Remake (Player2's Paddle won't show) |
Use one major loop, and it will work fine, and you should see them clearly. |
Author: | cptcool [ Sat Mar 29, 2008 2:58 pm ] | ||
Post subject: | Re: Pong Remake (Player2's Paddle won't show) | ||
Thanks for replying. I tried using one loop for both the player paddles, but the new problem is that it is very flickery, and player 2 barely moves until he pops back into his spawn location. here is the syntax
|
Author: | BigBear [ Sat Mar 29, 2008 3:26 pm ] |
Post subject: | Re: Pong Remake (Player2's Paddle won't show) |
You should take the variables for the second player out of the loop. Also to removce the flashing just remove the first cls and View.Update. Hope this helps. |
Author: | cptcool [ Sat Mar 29, 2008 3:45 pm ] |
Post subject: | Re: Pong Remake (Player2's Paddle won't show) |
thank you very much for your help ![]() |
Author: | michaelp [ Sat Mar 29, 2008 4:04 pm ] |
Post subject: | RE:Pong Remake (Player2\'s Paddle won\'t show) |
No problem. ![]() |
Author: | Sean [ Sat Mar 29, 2008 4:29 pm ] |
Post subject: | Re: Pong Remake (Player2's Paddle won't show) |
You will need to set boundaries for your paddles, by checking it's y positions, just to ensure to doesn't float off the page. |