Computer Science Canada Another Flickering issue |
Author: | incyc70 [ 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 |
Author: | Tony [ Mon Jan 03, 2011 11:32 pm ] | ||
Post subject: | RE:Another Flickering issue | ||
try using two separate View.Set statements
|
Author: | TokenHerbz [ Tue Jan 04, 2011 12:36 am ] | ||||
Post subject: | RE:Another Flickering issue | ||||
or rather, Just format it correctly.
View.Set ( ) can chain alot in it, but you have to structure it correctly. example:
|