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

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




PostPosted: Mon Jan 03, 2011 10:12 pm   Post subject: Another Flickering issue

What is it you are trying to achieve?
A simple horizontal animation of a ball.


What is the problem you are having?
When I use View.Set and set the screen size, the animation starts flickering like mad.


Describe what you have tried to solve this problem
I found that by leaving the screen to default, thus not specifying it. The animation will work normally.


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


View.Set ("graphics, offscreenonly : 800;600")
var x, y : int
x := 0
y := maxy div 2
loop
Draw.Cls
drawfillbox (0, 0, maxx, maxy, black)
drawfilloval (maxx div 2, maxy div 2, 45, 45, white)
drawfilloval (x, y, 45, 45, black)
x += 1
View.Update
end loop

Please specify what version of Turing you are using
4.1.1
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Mon Jan 03, 2011 11:32 pm   Post subject: RE:Another Flickering issue

try using two separate View.Set statements
code:

View.Set("graphics:800;600")
View.Set("offscreenonly")
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
TokenHerbz




PostPosted: Tue Jan 04, 2011 12:36 am   Post subject: RE:Another Flickering issue

or rather, Just format it correctly.
code:

View.Set("Graphics:800;600, offscreenonly")


View.Set ( ) can chain alot in it, but you have to structure it correctly. example:
code:

View.Set("Graphics:800;600, title: Testing This, position: center;center, nobuttonbar, noecho, offscreenonly")
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  [ 3 Posts ]
Jump to:   


Style:  
Search: