How do I setup multiple moving platforms in Blueprints using Matinee?

I have been creating new matinees for every moving platform in my game. I assume I can just create a blueprint and when I need 10 of the same platform that need to behave the same way I can just create 10 and not go through the whole process of making a new matinee and adding stuff to the level blueprint for each one.

Hi Jay Turns,

This tutorial should give you the information you need to create a BP of moving platforms. If you’ve already got your asset and matinee completed this will be a simple process to plug those in and have it so you can repeat it in your level.

Thank you!

Tim

Maybe I missed something, but I think that is exactly how set everything up so far. I am still not sure where it says how to make blueprint of the matinee, mesh, and trigger that I can just drag into the level and have a new mesh with a new triggerbox and matinee that will make the new mesh move.
Sorry if I am missing something obvious, I am very new to unreal engine and game design in general.

Here is how my level blueprint is currently set up.

I want to copy the falling board one, I tried a creating a composited blueprint with the matinee, triggerbox, and mesh. I figured it wouldn’t work and would cause the original mesh to fall when I stepped in the new triggerbox and that is what it did.

Hi Jay Turns,

Looking at your image setup there with the top trigger box 2 I’m not sure this is how you would go about setting that up. How are you using that trigger box? Is it encompassing the entirety of the level to make sure that the actor is always overlapping it? That trigger will only work when an actor is inside the trigger box. So it wouldn’t be able to move all the matinee animations unless your character was always touching it.

Something you can do is have an “Event Begin Play” node and plug that into “Play.” This will continually loop your Matinees. You could setup using BP to play your matinee but I’m not sure how you would go about having it reverse. I’d have to play around and dig into it as I’ve not had to fully set one up that way yet.

With the event begin play you’ll need to complete your animation in full (moving to location a then back to b) to use the begin at play. This is because if you only did half the animation (from a to b) not back when it looped it would jump from b to a and not move smoothly.

Here is a video on YouTube using Matinee in a BP that may help you as well

Alternatively, you could use BP’s to move the mesh without the need for Matinee all together.
This could be an option as well for doing simple movement (up/down, side/side, or rotation)

I hope this helps explain it a bit. If you have any questions feel free to ask and I’ll do what I can to help you out! :slight_smile:

Thank you!

Tim

Sorry I am terrible at explaining things. The trigger box for the looping platforms cover a section of the level where the platforms would be visible from. I am going to have a another trigger box for the sections of the level. Does it matter at all if I do it this way instead of event begin play? But I am not worried about the looping things at them moment.

here a video that has the moving platforms. The the platform that falls that I want to copy is right after a minute, when you overlap the trigger box for the platform it falls after .75 seconds, then comes back about a second after you leave the box.

I will watch the matinee in a bp video later on tonight. I just looked at the second link quickly and I think that should work though.
Thanks!

Hi Jay Turns,

So if I got this right, when you get to the bridge that you jump on, you want the pieces to fall and not come back up, right?

If that’s the case you can accomplish this by having the overlapactor triggerbox plugged into Set Looping State then plugged into your matinee. (See attached image).

This will only allow the matinee to play once.

Let me know if this helps you!

Tim

I actually want them to come back up. I have it so they drop after .75 seconds of overlapping the trigger box, then comes back. I am not necessarily trying to change my level blueprint. I want to be able to create and just drag a prefab as is I were just dragging a mesh or a composited bp into the editor, then place it and have it fall the same way that I have the original one set to.

If you’re wanting to just have a BP that has that information on how to use a matinee you can check out our BP Lightswitch tutorial that will show you how to use Meshes and trigger boxes within a BP. BP Lightswitch Tutorial

There is another video I found made by a user that is showing how to use a matinee within a BP that may be helpful as well.

Let me know if this works for you!

Tim

P.S. Good job on your level. When you get things rolling you should post in the works in progress section of the forum for user feedback if you want. :slight_smile: