FLickering
Author |
Message |
Mystique
|
Posted: Tue May 30, 2006 7:33 pm Post subject: FLickering |
|
|
another problem(s)
My game flickers like crazy! and i mean seriously flickering. I tried using setscreen ("offscreenonly"), but it is of no help. Any suggestions?
Also, how do I make one of "men" appear one or two at a time, not all of them?
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
Whack.t |
Filesize: |
3.43 KB |
Downloaded: |
62 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Cervantes
![](http://compsci.ca/v3/uploads/user_avatars/1023105758475ab2e040bde.jpg)
|
Posted: Tue May 30, 2006 7:40 pm Post subject: (No subject) |
|
|
setscreen ("offscreenonly") is indeed of no use if you do not use a View.Update somewhere.
Use a View.Update whenever you want to flip everything you've drawn to the back, or hidden, buffer into the front, or visible, buffer.
Use the handy search tool to search 'View.Update' in the Turing section, and you should get a lot more information.
|
|
|
|
|
![](images/spacer.gif) |
Mystique
|
Posted: Tue May 30, 2006 8:04 pm Post subject: (No subject) |
|
|
oo but i did use View.Update (i forgot to add it in the program i attached ), i used it after whenever i want to put the image back, and it still didnt work....as a desperate attempt i did it for every output action and it still didnt stop!!!
|
|
|
|
|
![](images/spacer.gif) |
NikG
|
Posted: Tue May 30, 2006 11:31 pm Post subject: (No subject) |
|
|
Well since you didn't attach the file WITH the View.Updates in place, it's a little hard to help you.
However, my guess would be that you are using multiple View.Updates inside your main game loop. By doing this, you defeat the purpose of View.Update altogether, because it is meant to do all the "work" offscreen and update only once all the work is complete (so... you should be using only one).
Check out this great new View.Set/View.Update tutorial by SuperFreak82.
|
|
|
|
|
![](images/spacer.gif) |
ohgeez_
![](http://www.geocities.com/ohgeez590/miniturtle.JPG)
|
Posted: Wed May 31, 2006 9:48 pm Post subject: (No subject) |
|
|
okk. problems
first. u lack the view.updates as said previously.
but more importantly,
u have
code: | setscreen ("offscreenonly ") |
instead of
code: | setscreen ("offscreeonly") |
the space is important
otherwise. cool program =D
|
|
|
|
|
![](images/spacer.gif) |
|
|