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

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




PostPosted: 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?


house2.t
 Description:

Download
 Filename:  house2.t
 Filesize:  11.77 KB
 Downloaded:  159 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
TerranceN




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




PostPosted: 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?
Display posts from previous:   
   Index -> General Programming
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: