BP - Floating Platform

I want to build a BP for a Platform that I am using on my level. As soon as I step on the platform, it should float down and up a little bit like floating rocks. Any idea how I could do this and what components should the BP have?

Hey @namik.tola!

First, create a new actor BP by right clicking on an empty space on your Content Browser, then clicking the Blueprint Class option on the menu that pops up, and selecting the Actor class. Then double click on your new asset and inside, navigate to the Components window on the top left, hit the Add button with a plus (+) icon on it, and add a static mesh and a collision volume like this:

You can adjust the details of your static mesh by navigating to the Details window on the right side while having it selected either from the Components window or the Viewport. Once you’re done adjusting the transformation of the model of your choice, place the collision volume on its surface like this:

Then implement this blueprint code to your Event Graph:

You can place the On Component Begin Overlap node by either selecting the component, which is box collision in this case, and then right clicking on an empty space on the Event Graph and searching for “on component begin overlap”, or by scrolling way down in the Details window until you get to the Events section and adding the event.

The TL:

And here’s the result:

Hope this helps! :innocent: