🤑 Indie game store🙌 Free games😂 Fun games😨 Horror games
👷 Game development🎨 Assets📚 Comics
🎉 Sales🎁 Bundles

Text Box HTML Element in a Scene?

A topic by Phrawger (Jacob Schatz) created 1 year ago Views: 285 Replies: 2
Viewing posts 1 to 3

I'm working on a mobile browser-based client as part of a project and I'm trying to inject a text input element into the scene via the DOM APIs. I've declared the document variable and used the createElement() and appendChild() functions to try and get it on the screen, and while it doesn't crash, it also doesn't show up. Any advice?

Yes, first time i have the same problem !

Look the canvas z-index. You need to make a "parent" container with a z-index higher than the canvas. And create your Element inside this "parent".

Other cool plugin if you need to write html / css directly in superpowers :

https://github.com/florentpoujol/superpowers-game-...

I installed this plugin, I've got the editor, but I cannot write anything on it. And the project demo is empty when I open it with Superpowers.
Here is where I installed it : resources/app/systems/game/plugins/florentpoujol/ftex.
It's too bad that we cannot create HTML files inside the editor directly...