Still flickers with View.Update
Author |
Message |
War_Caymore
![](http://compsci.ca/v3/uploads/user_avatars/1297396288461268b7c1f70.jpg)
|
Posted: 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 |
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
TheOneTrueGod
![](http://www.drmcninja.com/images/mcninjab3.jpg)
|
Posted: 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". |
|
|
|
|
![](images/spacer.gif) |
War_Caymore
![](http://compsci.ca/v3/uploads/user_avatars/1297396288461268b7c1f70.jpg)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
TheOneTrueGod
![](http://www.drmcninja.com/images/mcninjab3.jpg)
|
Posted: 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 . |
|
|
|
|
![](images/spacer.gif) |
War_Caymore
![](http://compsci.ca/v3/uploads/user_avatars/1297396288461268b7c1f70.jpg)
|
Posted: Fri Sep 22, 2006 9:13 pm Post subject: (No subject) |
|
|
ah, thank you again servantes. |
|
|
|
|
![](images/spacer.gif) |
Clayton
![](http://compsci.ca/v3/uploads/user_avatars/1718239683472e5c8d7e617.jpg)
|
Posted: 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 nice try |
|
|
|
|
![](images/spacer.gif) |
War_Caymore
![](http://compsci.ca/v3/uploads/user_avatars/1297396288461268b7c1f70.jpg)
|
Posted: 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 Very Happy](http://compsci.ca/v3/images/smiles/icon_biggrin.gif) |
|
|
|
|
![](images/spacer.gif) |
ZeroPaladn
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
|
|