x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Puzzle like Horizon Zero Dawn and Watch Dogs 2?

Hello guys!!

Do you know those puzzles that to solve need to rotate a series of "keys" to allow the "flow of energy" to go in the right direction? Yeah. Anyone have any idea how I can do something similar on the Unreal Engine?

Any help is very welcome!

Thanks a lot!


Product Version: UE 4.18
Tags:
more ▼

asked Dec 29 '17 at 06:33 AM in Using UE4

avatar image

WhiteCup Studios
0 1 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hey there, a video reference would be helpful. The overall idea is to have a set of goal rotations for each of the keys, so if you have 3 keys then you specify that key 1 must be at 90º, key 2 at 72º and key 3 at 245º to solve the puzzle. To rotate the keys you'll use a current/target rotation approach, which means that every tick you are getting the current rotation of the key and interpolating it always into the target rotation, everytime you use the move keys to rotate you set the target rotation to a specific value.

more ▼

answered Dec 29 '17 at 12:15 PM

avatar image

xlar8or
6k 163 130 305

avatar image WhiteCup Studios Dec 30 '17 at 06:40 AM

Look, brother, as you asked for: two samples of what a puzzle I'm trying to make it look like.

avatar image xlar8or Dec 30 '17 at 11:37 AM

Yeah it's like i told you, for the case of Horizon Zero Dawn you have several turning keys which are their own actor. As a player you do a trace to see if it hits a turning key and then if you press an input and it has a valid turning key, you'll tell it it to rotate. To rotate it's like i mentioned, every tick you get the current rotation, and interpolate to a target rotation (which is told by the player when you issue a rotate order). Then you need to have a manager actor that has a reference for all the keys and constantly check if each key is in the right place. If it is you disable the keys and do what you need to do after the puzzle has been solved.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question