1 decade ago
by Joncom
Having looked at ig.Input, I can see how it would be easy to bind specific keys and wait for them to be pressed....
But is there an easy way to listen for "any key pressed" such as when asking for a player to give his player a name?
No, you have to bind them all manually.
1 decade ago
by Joncom
Ouch. Guess I'll use an HTML form element and jQuery. Too bad, it would have been cool to say my game is 100% canvas.
1 decade ago
by paulh
You can all ways be creative ... I'm just guessing but if your inputting to string then check the string value every frame, if its increased, user pressed a key?
1 decade ago
by Joncom
Quote from paulh
You can all ways be creative ... I'm just guessing but if your inputting to string then check the string value every frame, if its increased, user pressed a key?
This would still require something like an input field to check every frame, no?
It might be better to have an alphabet on screen like the old arcade games, where you choose your initials by either moving a target to a letter and clicking shoot, or by moving a square around the alphabet and hitting shoot to select it. This approach will work well on iPad since you touch a keyboard anyway, and if you plan on packaging your game as an app, you won't have the normal HTML input fields anyway.
1 decade ago
by Joncom
Quote from stahlmanDesign
It might be better to have an alphabet on screen like the old arcade games, where you choose your initials by either moving a target to a letter and clicking shoot, or by moving a square around the alphabet and hitting shoot to select it. This approach will work well on iPad since you touch a keyboard anyway, and if you plan on packaging your game as an app, you won't have the normal HTML input fields anyway.
I like your idea, but it won't work for my game because it's an avatar chat. Feel free to
check it out.
By the way, when you say packaging as an app, you mean for mobile devices? Because my app does not run well on mobile unfortunately. In any case it was just an experiment.
Page 1 of 1
« first
« previous
next ›
last »