Hi, I am currently in the process of creating a puzzle for my computer games development course and I wonder if anyone could help or send me in the right direction, finding it difficult to find the right tutorials
There is 5 pillars, four on the outside and one in the middle. These four pillars have beams of light which face away from the central pillar. The player must rotate these pillars so that they face the central pillar but the trick is, for example:
When the player rotates the South West Pillar, the North West Pillar will rotate also. Each pillar is linked with another one.
This is my plan: I want there to be a trigger box around each pillar, when the player enters those trigger boxes, they are able to press “E” to rotate that pillar and the pillar that is linked to that one. The two pillars will rotate 90 degrees clockwise
each they are interacted with.
Should I be using matinees for this? I have had a mess around but I am struggling. I can get the rotation to happen once but after that I have no idea what to do. If anyone knows of any tutorials that they think would help me out, it would be
awesome and much appreciated.
I would use a timeline, as stated above, this would make a smooth transition for what you are doing.
To make things simple. I would make 4 different BP, that way you can cast to each one with each. (Make one then copy 3 times, and make a few small adjustments)
When “E” is pressed, you could set a “BOOL” that is picked up in the other BP off an event tick. and as one moves the other will move in the way you intended.
you would need to do is have another BOOL to flag when rotation is correct, then then for example, in you character, if 4 BOOLs are Yes, then you win.
I am at work at the moment, so can not put up screen shots, but should not take more then a couple of hours to set up, depending on how hard you are making it.
Hello,
Here is the try i did in one blueprint : In component tab : I add 5 pillars (with shape_cylinder mesh ( from starter content / Shapes) selected) and child to each rotating mesh:An arrow to show orientation (copy / paste from mycharacter) a text, and a box for overlap. Meshes are set + or - 200 and others are 0.0 (relative to each parent) (+150 z fdor text), and a text for mesh 1. Texts and Boxes are hidden in game in component tab.
And to activate Move pillars" event : In level blueprint :
Edit : To have good visual on blueprints do right click : show picture.
As a bonus, you can rotate texts to face player character like in Tesla tutorial :Unreal Engine 4 Tutorial - Text face player - YouTube or others you can find on youtube.
Edit 2 : I tried modifying it by adding custom events but, i don’t know if trouble is from sequence or custom events, but i couldn’t have it working so, this setting works ^^
Cheers everybody, this is a huge help. , this component thing is totally new to me as so far I have only really been working with basic blueprints, matinees and the environment. I really need to get stuck into some more tutorials. I will get back to you and let you know how I am getting on. Thank you so much for the and effort you’ve put into helping!