
-----------------------------------
incyc70
Mon Jan 03, 2011 10:12 pm

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

-----------------------------------
Tony
Mon Jan 03, 2011 11:32 pm

RE:Another Flickering issue
-----------------------------------
try using two separate View.Set statements
[code]
View.Set("graphics:800;600")
View.Set("offscreenonly")
[/code]

-----------------------------------
TokenHerbz
Tue Jan 04, 2011 12:36 am

RE:Another Flickering issue
-----------------------------------
or rather, Just format it correctly.
[code]
View.Set("Graphics:800;600, offscreenonly")
[/code]

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")
[/code]
