I’m working on a logic brick only solution for dynamic text input fields. It will enable character input, cursor movement within a field, individual character deletion and insertion, tabbing between fields. Pretty much like any standard text input field. It uses font map textures, of course, but adds and deletes a character object for each character input and deletion. This way each character is free to be placed anywhere, which is what I wanted for a BGE word puzzle that I’m working on.
Thanks to the new state machine, and those who implemented it.
Here’s a link to a YouTube video which demos what I done so far:
You’ll have less bricks to go through if you decide to mostly use python. Having a big python script and 15 bricks is much better than having 50 bricks and no python.
Believe me, I know python would have been waaaaaaaaay easier. But I was thinking of that Blender contest due aroud March which requires no python. And I’m thinking of porting my word puzzle to an iPhone or Google phone and I read on the web that there’s an app to convert Blender games to iPhone. I don’t know if it would convert python. Anyway, eventually I’ll probably code it in python, if I have to.
Cool, have you got any idea on how to make dynamic text only. And no input thing? Like in all games nowdays…it would be cool if there was a script that could read tex files and then just display what is written in the tex files on a plane.
Well, one way to go about that would be to use the font map texture on a plane technique and have one plane for each line of text that you want displayed. Use python to enumerate all of the planes and update their Text property by feeding them the text from an input file. Seems like it would be easy to implement.