How should I create minigames/puzzles in UMG?

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.
image
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?

Thank you!

1 Like

Consider the following:

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:

  • blueprint communication: direct, event dispatchers, interfaces, casting
  • drag & drop operation and payload
  • enumerators and arrays
  • umg panels
  • canvas, anchors, z-ordering
  • user widget wrapping, dynamic creation, exposed variables
  • umg brushes, styling and widget inheritance (can wait)

Thank you so much! This cleared a lot of things for me!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.