"Connect the dots"-style puzzle game using only UMG?

Hello everybody!

I would like to create a puzzle game where you have to connect dots placed in a grid with lines that cannot cross each other (like in the game Free Flow).

However, my game is only using widget blueprints, and I don’t know if it is possible to do what I imagine that way? If so, how can I start? How would you do it (at least the first steps to get started)?

Thank you in advance for your help!

  • create a widget that represents a field with a dot
  • populate a grid with those widgets
  • mouse goes down, record a starting coordinate of the grid field
  • mouse enters a field or goes down again, add a grid field coordinate to an array
  • lines can be drawn with onPaint using the abovementioned coordinates array
  • intersection will need to be done with math