Grez1
Member
Ok, n00b to the forums here. I've cranked out a couple of simple games so far and am enjoying GameMaker (note: I'm still on 1.499999 - evaluating as to whether to invest in 2.x). The one thing that I'm finding completely confounding is what would be the most simple of functionality way back the days when I was a kid and first learned to program: text input.
I get it -- GMS is designed in a way such that devs can take their code and port it to multiple platforms, especially mobile where the normal, simple solution -- a pop-up text box for input -- doesn't really work, as the concept of multiple windows is invalid there. But it's still fairly infuriating to see how much work it takes to get this done.
I've watched and played with multiple tutorials regarding drawing text and user-input text...but they mostly just show how to spit it out in an empty room. I watched tutorials on views, thinking that I could leverage a view to fake a text box in the room, but they primarily focused on a "zoomed-in" slice of a very large room in order to create a scrolling game.
I have a simple shooter game done, and I want the user to be able to input their name to be displayed with the high score. Ideally, I'd like for them to just be able to click on the shown name ("Player" by default), and have it pop up a little box to input the text with which they'd like to replace it. Should be simple, right? This is literally 1-2 lines of code in any of the other 10-12 languages in which I've coded in the past, so you can imagine that this is confusing and frustrating for me in this scenario.
So does anyone have a best practice as to a simple way to implement this type of functionality? I keep searching for answers and coming up empty. I'm hoping that the community here can help. I'm ready to get over this hurdle and start moving on to some other more advanced (well, intermediate ) topics.
Thanks in advance for the help!
I get it -- GMS is designed in a way such that devs can take their code and port it to multiple platforms, especially mobile where the normal, simple solution -- a pop-up text box for input -- doesn't really work, as the concept of multiple windows is invalid there. But it's still fairly infuriating to see how much work it takes to get this done.
I've watched and played with multiple tutorials regarding drawing text and user-input text...but they mostly just show how to spit it out in an empty room. I watched tutorials on views, thinking that I could leverage a view to fake a text box in the room, but they primarily focused on a "zoomed-in" slice of a very large room in order to create a scrolling game.
I have a simple shooter game done, and I want the user to be able to input their name to be displayed with the high score. Ideally, I'd like for them to just be able to click on the shown name ("Player" by default), and have it pop up a little box to input the text with which they'd like to replace it. Should be simple, right? This is literally 1-2 lines of code in any of the other 10-12 languages in which I've coded in the past, so you can imagine that this is confusing and frustrating for me in this scenario.
So does anyone have a best practice as to a simple way to implement this type of functionality? I keep searching for answers and coming up empty. I'm hoping that the community here can help. I'm ready to get over this hurdle and start moving on to some other more advanced (well, intermediate ) topics.
Thanks in advance for the help!