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.

Newcomers DBPro Corner / Text Input over Images... stuck

Author
Message
Ace of Springs
12
Years of Service
User Offline
Joined: 10th Jan 2012
Location: Cambodia
Posted: 15th Jan 2012 05:42
I am trying to get user input over a pasted image in a 3d world. Problem is, the input command will freeze the screen and not update the image, therefore when I use that to get user input, the image disappears. Any tips on how to properly make this work?

Ace of Springs
12
Years of Service
User Offline
Joined: 10th Jan 2012
Location: Cambodia
Posted: 15th Jan 2012 10:05
Nevermind, ended up making a make shift function with the inkey$() command. It seems to work alright.
Hodgey
15
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 15th Jan 2012 11:26
Try using the entry$() command instead. It retrieves input without pausing the program. A small example:



Millenium7
19
Years of Service
User Offline
Joined: 13th Dec 2004
Location:
Posted: 15th Jan 2012 18:20
also keep in mind that entry$() is reliable with the keystrokes. If you use inkey$() it registers only a single key at a time, and is dependent on the program. If your game runs at 30fps for instance then there is a 33.3ms window between each frame, if a key is pressed and released within that period of time it will NOT register within the game. Very bloody annoying if you are a fast typer. It's also very slow if you are holding down a key and want it to repeat/delete/backspace

Entry$() is not tied to your game, it'll record all keystrokes pressed and feed them all to the game when requested
Ace of Springs
12
Years of Service
User Offline
Joined: 10th Jan 2012
Location: Cambodia
Posted: 3rd Mar 2012 07:01
I guess Entry$ is the way to go then. Thank you for the help.

Login to post a reply

Server time is: 2024-11-22 06:42:43
Your offset time is: 2024-11-22 06:42:43