Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 FLickering
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Mystique




PostPosted: Tue May 30, 2006 7:33 pm   Post subject: FLickering

another problem(s) Razz

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?



Whack.t
 Description:

Download
 Filename:  Whack.t
 Filesize:  3.43 KB
 Downloaded:  62 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Cervantes




PostPosted: 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. Smile
Mystique




PostPosted: 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 Embarassed ), 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




PostPosted: 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.
ohgeez_




PostPosted: 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
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: