I’m creating a 3D-game, with 2D-minigames/puzzles in it, I’ve figured out how to display said puzzles, but I don’t know how to actually give the puzzles some functionality.
Below is a barebone-example on one of the puzzles I’m trying to create, the point is to move the smiley inside the borders using the slider, if the player gets the image in the correct location, they will recive a reward.
Some other puzzles I want to create are a 4-piece puzzle, connect the right shapes to each other and a word puzzle where you rearrange the letters to form a word.
I’ve explored the events and functions in the UMG event graph, but I’m still so new with Blueprints and Unreal that I have no idea where to start, english also isn’t my first language so I don’t know what to search for.
Is there a tutorial on anything similar to what I’m trying to do, or should I take a different approach to my problem?
It can be improved drammatically ofc, but hopefully this can get you going.
a word puzzle where you rearrange the letters to form a word
create a user widget representing a letter and some variables defining the data
parse the answer word to generate user widget letters, chuck them into an array, shuffle, add to a widget panel - a horizontal box
look into drag & drop, it will allow you to reposition the letter blocks in a container
onDrop - insert the dragged user widget payload in the container, fetch the children of the container, read and append their data, compare it to the answer word
create are a 4-piece puzzle, connect the right shapes to each other
Sounds like good old drag & drop where you compare payload data. Do look into UMG drag and drop. Sounds like it’s going to be key here.
Is there a tutorial on anything similar to what I’m trying to do, or should I take a different approach to my problem?
So far it sounds like generic UMG shenanigans, but there is A LOT to take in.
I don’t know what to search for
That’s half the battle, indeed - things to look up: