
-----------------------------------
War_Caymore
Fri Sep 22, 2006 11:55 am

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

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

-----------------------------------
TheOneTrueGod
Fri Sep 22, 2006 12:12 pm


-----------------------------------
You need to add a "View.Set("offscreenonly") to it.

Or, just incorporate that into your "setscreen".

-----------------------------------
War_Caymore
Fri Sep 22, 2006 12:14 pm


-----------------------------------
wow, thanx. of course, a noobish mistake. thanx again. i hope to come up with a game incorporating this little bit of code.

-----------------------------------
TheOneTrueGod
Fri Sep 22, 2006 1:45 pm


-----------------------------------
No problem, good luck with the game.

There is nothing wrong with noobish mistakes, though this question can be found in the turing FAQ :P.

-----------------------------------
War_Caymore
Fri Sep 22, 2006 9:13 pm


-----------------------------------
ah, thank you again servantes.

-----------------------------------
Clayton
Sun Sep 24, 2006 6:48 pm


-----------------------------------

ah, thank you again servantes.


whaaa?!?! i dont see Cervantes aka. Clevernuts in this topic... or maybe im blind, but anyways, yeah :P nice try

-----------------------------------
War_Caymore
Mon Sep 25, 2006 12:58 pm


-----------------------------------
sorry... i was reading another topic in another window so um...... yeah..... un, than OneTrueGod. sry bout that :D

-----------------------------------
ZeroPaladn
Mon Sep 25, 2006 1:11 pm


-----------------------------------
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 [url=http://www.compsci.ca/v2/viewtopic.php?t=8808]this.
