Computer Science Canada

Reducing Flicker in a program and drawing the right stuff

Author:  S_Grimm [ Wed Jun 04, 2008 10:57 am ]
Post subject:  Reducing Flicker in a program and drawing the right stuff

I am working on a pong game. the ball will not show up when i run the program here is the code can anyone help me?

Author:  rto [ Wed Jun 04, 2008 11:17 am ]
Post subject:  RE:Reducing Flicker in a program and drawing the right stuff

hmm, also notice taht when you press pause on the actual program, and than you press resume u'll notice the ball. every time u press pause and resume it has moved .

Author:  SNIPERDUDE [ Wed Jun 04, 2008 2:07 pm ]
Post subject:  RE:Reducing Flicker in a program and drawing the right stuff

you are drawing the ball before you clear the screen.

Switch around the order of the two and you'll get it.

Author:  S_Grimm [ Fri Jun 06, 2008 10:30 am ]
Post subject:  RE:Reducing Flicker in a program and drawing the right stuff

thanks it worked

Author:  SNIPERDUDE [ Fri Jun 06, 2008 10:37 am ]
Post subject:  RE:Reducing Flicker in a program and drawing the right stuff

no problem Smile

Author:  DaveAngus [ Fri Jun 06, 2008 11:26 am ]
Post subject:  RE:Reducing Flicker in a program and drawing the right stuff

I haven't got turing on this computer so I cant check the code or anything but check your View.Update and see if you have one in the right place. Not having a View.Update is a common error.
Hope it all goes well!


: