Spline based movement, spawning in floor

I’m trying to follow this tutorial to restrict my player movement to a spline: Tutorial: Blueprint Spline locked sidescroller (e.g. Klonoa / Pandemonium style game) - Programming & Scripting - Unreal Engine Forums
Problem is the variable type Spline_C doesn’t exist. I have found a variable type that is the name of my spline blueprint so I tried using that and it looks exactly the same as his so i’m not sure if that’s the problem, Screenshot - fb8bc81f80a7a9b8a506d27098bc88ec - Gyazo

Even though it looks exactly the same my player is spawning underneath the floor instead of at the beginning of the spline like in his example, Screenshot - d776750a1e1c80041cb4c93234c5f1a2 - Gyazo

I have no idea whats wrong

Hi ! i have exactly the same problem , i’ve followed the same tutorial and get the same issue ^^ … i hope someone can help us … i’m trying to fix this so if i found something useful i will tell you :wink:

Hi Guys

Just a guess, I would choose Spline Mesh Actor. Looks the same to me. Give it a go.

51525-capture.jpg

Have you selected the BP in the details panel in the main window (not the character bp window)?

I had the same trouble but forgot to assign it, now my pawn is displayed at the correct point.

I also had the variable type as the name of my spline blueprint.

53844-splineref.png

I had the same issue until I realised that I used “get world distance at distance along spline” instead of “get world LOCATION at distance along spline”.

Hope this helps if it hasn’t been resolved already! :smiley:

How do you get the “Target Spline 1” node in the BP. Sorry, still new to all of this.

How do you get the “Target Spline 1” node in the BP. Sorry, still new to all of this.

It should create one automatically when you attach the Spine variable to the Get World Location Along Spline node. That was my case.

How do find “Get world Location Along Spline” node? It’s the only node that does not seem to appear.

Blockquote

Nope, that doesn’t seem to make it appear. Doing searches on the unreal sites seems to indicate that it doesn’t exist either. Despite the fact that people are using it. I’m using 4.10, which shouldn’t matter, but maybe it plays a factor.

Do you happen to have a link to the documentation? Maybe that’s a good place to start. Because I’m having a hard finding anything on it.

Whenever I do a search, I get these.

I was thinking the name was changed, maybe it’s one of these now. Not sure.

This is my version of the blueprint. Try dragging the yellow node out from the Set variable and type in Get World Location at Distance Along Spline; sometimes it helps to do that. Let me know of this works :slight_smile:

That’s strange… because it does appear in Unreal’s documentations. I do, however, know that names for some variables had been changed as UE4 updates. For example, I had to change the Get World Location Along Spline to Get World Location at Distance Along Spline from 4.6 to 4.7. So perhaps it’s under a different name again.

Alright, I figured out something.

It works. So I’m happy for the being. Thank you for assisting me .