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 Discussion / input program

Author
Message
mido
19
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 10th Jan 2006 23:28



my proplem is that when i use the input command while in 3d
i can't see what im writing or the text before the input
any ideas to fix this proplem

M25
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 11th Jan 2006 12:11
When you have syncing on and you use "input" all action stops until the input is typed in... there is no way to "sync" whats typed to the screen. You have to make your own input routine with a "sync".




Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 11th Jan 2006 15:11
I believe it only works in the enhanced version! (entry$(), clear entry buffer, etc.)

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 11th Jan 2006 21:04
Oops... you're right. Thanks for pointing that out.

If he doesn't have the enhancment pack he can use "keystate()" with a timer to do it. It looks kinda weird but the following code snip only allows numbers (from the top of the keyboard) which is probably better anyway.




new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 11th Jan 2006 21:11
ok and why is this better than "input"??

Your signature has been erased by a mod, none of whom are dumber than you.
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 11th Jan 2006 21:29
ahm..i tryed the last code , but it ends imediatly , i don`t see any text at all.


Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 11th Jan 2006 23:39
It requires to be copied into his program for it to work properly. If you want to run it independent of his program just use the code snip in this message.

I copied out the routine and added "set text opaque" and a space after printing b$ to delete the text without the need to be in 3D.




mido
19
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 12th Jan 2006 00:53
Quote: "
input program
"

it is "input proplem"

i solved the proplem with another way :
i found that when any 3d rendering is on the screen the backdrop is turned on (and this is why the text is not appearing) so before adding the input command i added "backdrop off" and after it i added
"backdrop on" like this :



but i still need to know the way you did it
i don't understand the code snipit, can you please Grog explain what each line do with rem statments and thanx for the help

i don't have the enhanced version
and sorry if my english is bad

M25

Login to post a reply

Server time is: 2025-05-22 23:49:23
Your offset time is: 2025-05-22 23:49:23