Hi, I’m trying to make a game similar to Subway Surface and Minion Rush. I already followed the Endless Run Tutorial and made something 30% similar to Subway Surfers. And the curved world too.(Using *World Position Offset)
I used Get forward vector and add movement input to move my character in a straight line. The way I’m switching tracks is by using a timeline, lerp vector and set relative location.
But I want to add non straight tracks, like in Minion Rush.
Making non straight tracks and spawning them is easy. But switching tracks and running along track is something that I can’t understand, And how do I can make the character follow the tracks like above? I already tried Spline but, because of I’m doing a spawning, I can’t make the character to follow the path using Spline which is in a blueprint.
Here’s what I tried.
I made 3 Spline paths and tried to move my character along one of them. What I did is casting to that blueprint when character overlap with it and using Spline data to move it.
Well, the first overlap worked.
I used Cast to Floor, but the spawned Floors are Floor, Floor1, Floor2, Floor3…. It isn’t working after the first cast. I think the best way to do this is not using Splines. So is there any way to do this? If you have any idea to work this around, please help.
,