
-----------------------------------
Mystique
Tue May 30, 2006 7:33 pm

FLickering
-----------------------------------
another problem(s) :P 

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?

-----------------------------------
Cervantes
Tue May 30, 2006 7:40 pm


-----------------------------------
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 [url=http://www.compsci.ca/v2/search.php]search tool to search  'View.Update' in the Turing section, and you should get a lot more information. :)

-----------------------------------
Mystique
Tue May 30, 2006 8:04 pm


-----------------------------------
oo but i did use View.Update (i forgot to add it in the program i attached  :oops: ), 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!!!

-----------------------------------
NikG
Tue May 30, 2006 11:31 pm


-----------------------------------
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 [url=http://www.compsci.ca/v2/viewtopic.php?t=12533]View.Set/View.Update tutorial by SuperFreak82.

-----------------------------------
ohgeez_
Wed May 31, 2006 9:48 pm


-----------------------------------
okk. problems

first. u lack the view.updates as said previously.

but more importantly,

u have 
 setscreen ("offscreenonly ")
instead of
 setscreen ("offscreeonly")
the space is important

otherwise. cool program =D
