Text Box for Name on Score


(Heron Vieira) #1

Hello there!

I’m learning how to develop games on flashpunk, so i’m kinda newbie on the plataform…

I’m trying to put an text box so the user can enter it’s name and i can put it on an online rank…I searched trough the internet for 2 hours straight and i wasn’t able to find a decent tutorial or explaining on how to do this, i bet is so simple and that’s why nobody made a tutorial! xD

Thank you already!


(Willard Torres) #2

For more advanced UI, you can follow this tutorial by @AbelToy

Or you can use punk.ui


(Jacob Albano) #3

Combined with the above, check out Input.keyString for getting the text your player is typing.


(Willard Torres) #4

To be honest, I’ve only heard of that member now, haha. I was thinking of something devilishly difficult such as checking each character input, and adding it to a string.


(Heron Vieira) #5

Thank you both!

I’m gonna study your suggestions, anything i’ll come here again!