Hello .
as the title explains I’m making a 2.5D adventure type game, and so that the character doesn’t fall off from the “Play area” I have it constrained to Y axis.
This is the video of the issue, somehow need to make the character follow the platform, but I’m not able to do it.
You need to attach your player actor to the platform.
Give the platform a cube collider that you place above the platform and scale it, to fits its bounds.
Add an OnBeginOverlap Event. Take the actor, and cast it to your Player Character.
If the cast is not failing (the upper output of the cast node), take the actor of the event again and Attach actor to Actor.
And add an OnComponentEndOverlap. Here you cast again for your player Character. If not failing, you Detach it.
Means… Player leaves the platform by running off or jumping, he will lose his child status and is not moving with the platform, until he enters again.