Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Flashing text in 3D scape

Author
Message
thecartm
14
Years of Service
User Offline
Joined: 30th Mar 2012
Location: In your closet, hiding....
Posted: 31st Mar 2012 00:12
I have enchountered a problem while scripting.
So I am working in DARKBASIC pro, with the 3D on, and when I try to use a print command. The text pops up, but just for an instance before it dissapears. Next I try to loop printing, but it just flashes. I try setting sync to 1, and the text appears then dissapears, in order, in coordination with the sync. I then preform a test. I load the Freeflight example and the text on top appears clearly.I alter the top line of text so it reads,"lol"( I didn't use the "s). The text flashes like before. Please explain how this happens. I am using one of the most recent darkbasics (10) and using a Recent computer type(about a few months old).

Hah, my signature is meaningless.
WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 31st Mar 2012 01:28
You have to draw the text to the screen every update, ie within the loop.

Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!
thecartm
14
Years of Service
User Offline
Joined: 30th Mar 2012
Location: In your closet, hiding....
Posted: 31st Mar 2012 01:39
Tried it, dosen't work. Also, did you see what I've tested? A darkbasic made script, working perfectly fine, and when I change some text it flashes!

Hah, my signature is meaningless.
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 31st Mar 2012 02:11
put SYNC ON at the beggining of your program
use TEXT command instead of PRINT command

Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 31st Mar 2012 20:56
sync on
do
set cursor 0,0
print "Hello World"
sync
loop

more 3d models .x/.obj and more foramts here:
[href]https://www.turbosquid.com/Search/Index.cfm?keyword=gogetax1&x=0&y=0[href]

Login to post a reply

Server time is: 2026-07-10 13:45:15
Your offset time is: 2026-07-10 13:45:15