Computer Science Canada

when i run my game it blink rapidly, how do i fix it?

Author:  m3mb3r [ Mon Sep 12, 2011 8:42 pm ]
Post subject:  when i run my game it blink rapidly, how do i fix it?

What is it you are trying to achieve?
I'm trying to stop the game from blinking and make it run smooth.


What is the problem you are having?
when i run my game where its looped the game blinks.


Describe what you have tried to solve this problem
adding an extra loop. there might be something to do with the "View.set" command and then View.Update not sure.


Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)


Turing:


<Add your code here>



Please specify what version of Turing you are using
<Answer Here>

Author:  ProgrammingFun [ Mon Sep 12, 2011 8:45 pm ]
Post subject:  Re: when i run my game it blink rapidly, how do i fix it?

m3mb3r @ Mon Sep 12, 2011 8:42 pm wrote:
Describe what you have tried to solve this problem
adding an extra loop. there might be something to do with the "View.set" command and then View.Update not sure.
You're right, now look that up in the Turing Documentation and Turing Walkthrough
Then post some code so we know what you are struggling with.

You basically need to do all drawings offscreen before updating what the user sees. Everything before end of loop (in loop) would be offscreen...


: