
-----------------------------------
noobprogrammer123
Tue May 04, 2004 4:08 pm

need stop blinking help
-----------------------------------
how do i make this stop blinking at the start of the program

-----------------------------------
Cervantes
Tue May 04, 2004 4:14 pm


-----------------------------------
you need to use the "offscreenonly" techneque, normally called backbuffering.

to activate this techneque, usually somewhere at the beginning of your prog, type:
setscreen ("offscreenonly")
then to update your screen, type
View.Update
the view.update would normally go inside a loop.

-----------------------------------
Dan
Tue May 04, 2004 5:42 pm


-----------------------------------
This only works in turing 4.x, if you have turing 3.x you should uses sprites or draw over the areas being chaged insted of clsing the screen.

-----------------------------------
noobprogrammer123
Tue May 04, 2004 5:58 pm


-----------------------------------
when i put that in it made my program show a white screen for a second then slowed it down

-----------------------------------
noobprogrammer123
Tue May 04, 2004 6:00 pm


-----------------------------------
is there a place the view update should go in the loop or anywhere will do, because it makes one of my fonts not show up

-----------------------------------
Cervantes
Tue May 04, 2004 6:01 pm


-----------------------------------
backbuffering (offscreenonly) does slow the program down.  a lot.  as for the white part, you probably just forgot to put a View.Update in there.  But i can't really say without seeing the code.
as to your 2nd post: think about it logically.  
if you've want to draw a circle, some text, a box, and a background picture to your screen, and move the circle, text, and box around the screen, your going to do that in a loop, and your going to use cls to clear the screen.  You'll also need to use View.Update to make this stuff actually show up.

loop
draw backgroundpicture
draw text
draw circle
cls
draw box
View.Update
end loop

if you had it like that, you would only see the box, because your clearing the screen of the background pic and the text and the circle.  
it should be like this

loop
cls
draw backgroundpicture
draw text
draw circle
draw box
View.Update
end loop

hope that helps
