Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
0
Members

Text Box HTML Element in a Scene?

A topic by Phrawger (Jasmine Schatz) created May 03, 2016 Views: 702 Replies: 3
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-...

lol he give no explanation and the project just sup.log what is write in other files wtf

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...