Computer Science Canada

Still flickers with View.Update

Author:  War_Caymore [ 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

Author:  TheOneTrueGod [ Fri Sep 22, 2006 12:12 pm ]
Post subject: 

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

Or, just incorporate that into your "setscreen".

Author:  War_Caymore [ Fri Sep 22, 2006 12:14 pm ]
Post subject: 

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

Author:  TheOneTrueGod [ Fri Sep 22, 2006 1:45 pm ]
Post 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.

Author:  War_Caymore [ Fri Sep 22, 2006 9:13 pm ]
Post subject: 

ah, thank you again servantes.

Author:  Clayton [ Sun Sep 24, 2006 6:48 pm ]
Post 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

Author:  War_Caymore [ Mon Sep 25, 2006 12:58 pm ]
Post subject: 

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

Author:  ZeroPaladn [ Mon Sep 25, 2006 1:11 pm ]
Post 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.


: