By lilKriT


2019-01-11 03:24:58 8 Comments

I want to create a game where you walk around in 3D, and sometimes you can activate some kind of 2D puzzle. For example - you walk up to the door, and you can open it using lockpicks. The lockpick part is 2D. There's plenty of games which could be example of that, like Assassin's Creed 3, Skyrim or possibly the new Thief?

While lockpicking the door, you lose control of the character, you use mouse or buttons to move the lockpicks. The visible elements would be moving.

How would you do that? Should I use UMG objects like images and buttons, or should I use some other kind of 2D graphics drawing? Or something even else?

2 comments

@lilKriT 2019-03-23 02:14:42

I think I solved my own problem quite well... this is how I did it.

I used default UE4 third person character for walking around. When I'm inside specific colliders and press a button, I access the "lockpick mode". That involves unpossessing the default character, creating a very simple pawn (it only reacts to some buttons and mouse movements, but cannot move around) and possessing it.

The lockpick "target" has a transform where to create the lockpicking interface, and where to place the new player pawn.

The lockpicking puzzle is not UMG. While UMG is powerful, it's just not enough. I have a game object containing the lockpick (which is just a 2D actor that has a collider and is controlled by the mouse) and some pins which have physics turned on.

If anyone is interested and this is not clear enough, I will be happy to add details!

@Stephen 2019-01-11 08:13:10

I would use UMG. All the functionality you need is in there and you can use Set Input Mode Game and UI blueprint and set the target to your new UMG. It also has a Boolean operator to Lock Mouse to Viewport.

I believe this will also deactivate player control in the background but haven't tested this so can't say for certain. Disabling character control is also one function in Blueprint though so setting and unsetting it (when the UMG is closed) won't be a problem.

Related Questions

Sponsored Content

0 Answered Questions

Understanding UE4 OpenGL contexts

1 Answered Questions

[SOLVED] UE4 - projectile that turns into an enemy?

  • 2018-09-17 14:50:32
  • lilKriT
  • 79 View
  • 1 Score
  • 1 Answer
  • Tags:   unreal-4

1 Answered Questions

[SOLVED] Algorithm to solve a battle in a card game

2 Answered Questions

[SOLVED] Generating Arrow Maze puzzles

1 Answered Questions

[SOLVED] Downloading levels in UE4

  • 2016-03-24 23:01:09
  • Roman
  • 59 View
  • 0 Score
  • 1 Answer
  • Tags:   unreal-4

1 Answered Questions

[SOLVED] UE4 Blueprint OnActorBeginOverlap not working

  • 2016-05-09 12:56:42
  • Richy
  • 1961 View
  • 0 Score
  • 1 Answer
  • Tags:   unreal-4

1 Answered Questions

[SOLVED] UE4 Try Get Pawn Owner Node Location

  • 2016-05-08 13:23:01
  • Richy
  • 247 View
  • 0 Score
  • 1 Answer
  • Tags:   unreal-4

2 Answered Questions

[SOLVED] How can I estimate the difficulty of user-generated content in my puzzle game?

  • 2014-02-11 03:01:12
  • snollygolly
  • 278 View
  • 4 Score
  • 2 Answer
  • Tags:   puzzle difficulty

1 Answered Questions

[SOLVED] Algorithm to produce 'Lady or Tiger' puzzles?

  • 2013-11-19 21:50:08
  • vauge
  • 410 View
  • 8 Score
  • 1 Answer
  • Tags:   algorithm puzzle

1 Answered Questions

[SOLVED] Simple puzzles in platform games

Sponsored Content