Search the Community
Showing results for tags 'textbox'.
-
I have a textblock on my gui that counts how many shots I have taken in my game. I increment the shot counter successfully but I don't know how to change the number currently displayed on the screen. Here is what I am trying (unsuccessfully). scene.actionManager.registerAction(new BABYLON.ExecuteCodeAction({ trigger: BABYLON.ActionManager.OnEveryFrameTrigger}, function () { text13.text = shots.toString(); advancedTexture.update(); }));
-
Hi everybody, my question ist propably easy-pupeasy for all of you, but I'm a writer, not a coder and so for me it's like rocket science. Anyway: I'm making a branch-narrative game at the moment and I want to put in a simple textfield where players have to insert a codeword (e.g. Hamster). If they put it in correctly then I want a sentence to appear afterwards. (e.g. Hamster indeed! Good job) If got this far (pretty awesome - I know): <form> Codeword:<br> <input type="text" name="Codeword"><br> </form> Thank you very much for your help G
-
Hi pandajs experts, How will I add text boxes and other input elements to pandajs? I've read that we can create elements outside canvas. (http://stackoverflow.com/questions/4797748/can-i-put-a-html-button-inside-the-canvas) What is your thought about this? Thanks,