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

Username:   Password: 
 RegisterRegister   
 Still flickers with View.Update
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
War_Caymore




PostPosted: Fri Sep 22, 2006 11:55 am   Post subject: Still flickers with View.Update

I made this little program to incorporate what ive learned from a tutorial, but the program still flickers, even with View.Update in place. Correct any noobish mistake i made.

War_Caymore

code:
setscreen ("graphics: 300; 300, position: center; center, title: The Dot, nobuttonbar")
var x, y, button : int
var font : int
font := Font.New ("sans serif:12:bold")



loop
    Font.Draw ("You can move the dot around...", 25, 250, font, red)
    Mouse.Where (x, y, button)
    Text.Locate (1, 1)
    Draw.FillOval (x, y, 10, 10, black)
    View.Update
    delay (25)
    cls
end loop
Sponsor
Sponsor
Sponsor
sponsor
TheOneTrueGod




PostPosted: Fri Sep 22, 2006 12:12 pm   Post subject: (No subject)

You need to add a "View.Set("offscreenonly") to it.

Or, just incorporate that into your "setscreen".
War_Caymore




PostPosted: Fri Sep 22, 2006 12:14 pm   Post subject: (No subject)

wow, thanx. of course, a noobish mistake. thanx again. i hope to come up with a game incorporating this little bit of code.
TheOneTrueGod




PostPosted: Fri Sep 22, 2006 1:45 pm   Post subject: (No subject)

No problem, good luck with the game.

There is nothing wrong with noobish mistakes, though this question can be found in the turing FAQ Razz.
War_Caymore




PostPosted: Fri Sep 22, 2006 9:13 pm   Post subject: (No subject)

ah, thank you again servantes.
Clayton




PostPosted: Sun Sep 24, 2006 6:48 pm   Post subject: (No subject)

War_Caymore wrote:

ah, thank you again servantes.


whaaa?!?! i dont see Cervantes aka. Clevernuts in this topic... or maybe im blind, but anyways, yeah Razz nice try
War_Caymore




PostPosted: Mon Sep 25, 2006 12:58 pm   Post subject: (No subject)

sorry... i was reading another topic in another window so um...... yeah..... un, than OneTrueGod. sry bout that Very Happy
ZeroPaladn




PostPosted: Mon Sep 25, 2006 1:11 pm   Post subject: (No subject)

War_Caymore wrote:
wow, thanx. of course, a noobish mistake. thanx again. i hope to come up with a game incorporating this little bit of code.


it is where we all started (well, most of us. Some people are just born to program), and you dont have to be sorry about it. just keep taking your clases, and visit ths site often. oh, and take a look at this.
Sponsor
Sponsor
Sponsor
sponsor
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  [ 8 Posts ]
Jump to:   


Style:  
Search: