Computer Science Canada

Turing Help

Author:  mayaramamurthy [ Wed Feb 08, 2012 4:25 pm ]
Post subject:  Turing Help

I have a computer project due tomorrow, and it won't stop flickering. I have used View.UpdateArea and tried View.Update before that. I also have View.Set ("offscreen only"), but it wont stop flickering. Can someone tell me what I am doing wrong?

Author:  TerranceN [ Wed Feb 08, 2012 4:47 pm ]
Post subject:  Re: Turing Help

You're probably going to be kicking yourself for this but...
This:
Turing:
View.Set ("offscreen only")


Should be:
Turing:
View.Set ("offscreenonly")


There are still some problems with the code you have though. What you've drawn only gets put onto the screen when View.Update() is called, so this code blacks out the sun before it gets drawn:
Turing:
        Draw.FillOval (80, y, 65, 65, 43)
        delay (100)
        Draw.FillOval (80, y, 65, 65, 17)
        y := y - 10
        View.UpdateArea (0, 0, maxx, maxy)


There is a similar problem with the moon.

Author:  mayaramamurthy [ Wed Feb 08, 2012 10:42 pm ]
Post subject:  Re: Turing Help

Thanks so much for the view.update Smile and do you know what is wrong with the moon and sun?


: