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

Username:   Password: 
 RegisterRegister   
 need stop blinking help
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
noobprogrammer123




PostPosted: Tue May 04, 2004 4:08 pm   Post subject: need stop blinking help

how do i make this stop blinking at the start of the program


slotMachine.zip
 Description:

Download
 Filename:  slotMachine.zip
 Filesize:  14 KB
 Downloaded:  249 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Cervantes




PostPosted: Tue May 04, 2004 4:14 pm   Post subject: (No subject)

you need to use the "offscreenonly" techneque, normally called backbuffering.

to activate this techneque, usually somewhere at the beginning of your prog, type:
code:
setscreen ("offscreenonly")

then to update your screen, type
code:
View.Update

the view.update would normally go inside a loop.
Dan




PostPosted: Tue May 04, 2004 5:42 pm   Post subject: (No subject)

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.
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
noobprogrammer123




PostPosted: Tue May 04, 2004 5:58 pm   Post subject: (No subject)

when i put that in it made my program show a white screen for a second then slowed it down
noobprogrammer123




PostPosted: Tue May 04, 2004 6:00 pm   Post subject: (No subject)

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




PostPosted: Tue May 04, 2004 6:01 pm   Post subject: (No subject)

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.
code:

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
code:

loop
cls
draw backgroundpicture
draw text
draw circle
draw box
View.Update
end loop

hope that helps
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  [ 6 Posts ]
Jump to:   


Style:  
Search: