Hello, everyone. I’m looking for advice on how I can make a game of hangman using Paper2D inside of Unreal. For instance, I’d like to know how I can pick random words and erase parts of the player’s body. Really any help on this would be much appreciated. Thanks in advance!
Unreal doesn’t do well with strings and arrays which you both need to accomplish a basic hangman game.
The basic part is simple.
make an array of words and select one at random to start.
given the string you find the character within it (takes half a second in c++, not sure the blueprint has a way to find a single character).
To get to where you find a character you would have to structure a UMG widget where the user can type, or a list of characters across the screen that the user can select.
to associate a wrong choice to the process of adding/removing parts I would use a function call.
if the character isn’t in the string you call that function and do or generate whatever you need for the body to appear or disappear.
I would suggest using a custom c++ actor to get this done.
Thanks for the response. I found this template, which essentially is everything mentioned above: GitHub - Danqin1/UE4-Hangman: Simple hangman in Unreal Engine 4 using C++