Maximum number of charaters available for the Keyboard Input behavior
RabidParrot
Formally RabidParrot.Member Posts: 956
Is there a maximum number of characters for the Keyborad input or is it infinite?
Comments
What?! There's a text input behavior?
Yea there is a Keyboard input behavior but it's not the best.
I've come to the conclusion that infinite or not the keyboard editor allows for an ungodly amount of characters. Not worth what I was trying to do.
Oh that is weird, it doesn't show up as part of the game screen but its own prompt window wonder how that works on devices.
Anyways I tested it and entered a whole bunch of stuff longer than 1023, but when i printed the textLength(game.mytext) it showed 1023, so I am guessing that's the limit 1024 - 1 i am guessing a extra null character probably to indicate end of string.
I pasted 3000 words 20 times which is far too many than I was trying to work with.
tested on my device android. And it's well not fit for portrait mode as i don't know how to get to see the "Done" button had to rotate to landscape mode, it also changes color to white when in landscape, and black in portrait. We seem to have no control over the visual aspect of this keyboard input behavior
I started work on a custom keyboard in case you're interested: http://forums.gamesalad.com/discussion/comment/451764/#Comment_451764.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Thanks!