Hey everyone!
First off, please don’t judge too harshly — I’m still new to Unreal Engine.
So, here’s the idea: I’m working on a game where the main mechanic is “solve a math problem correctly to defeat an enemy.” In short, every time a level is initialized, a random math problem is generated, and the player can start entering numbers at the bottom of the screen (the input is handled through buttons). The problem appears at the top, and you press the correct number to move on. Pretty simple.
Now, the issue is that the game logic currently allows problems with two-digit answers, but at the moment, the input system only supports entering a single digit — anything more and it won’t let the player continue.
So, here’s my question: how can I set up the input to allow entering two or more digits? Right now, number input happens when the player presses buttons, and the selected numbers appear in an InputTextBlock
. I need to make it so the player can enter multiple digits into that InputTextBlock
.
PS: On screenshots you can see how my game is look and how the Widget Logic is work for now.
Any help would be super appreciated!