Why Aren't My Lanes Switching Properly?

I am following this tutorial here.

Below are pictures of my work.

This is my tile that repeats itself to make the track endless. My problem is that whenever I switch lanes in game, it places me at the location of where the first was instead of the current track.

243963-lanesandlocation.png

These are the locations of each spot on the tile where I want the character to move to. Before I noticed the problem where it would take me to the first tile, it would also move me to the left said of the track, meaning off to the left of Lane 0.

These are the variable representing the lanes in the ThirdPersonCharacter Blueprint. The Array Locations are the same as the Lane Locations I marked above.

This is the code I followed from the tutorial that switches the lanes.

Can anyone see what I did wrong? Or even an a better way to do it? All help is appreciated!

I suspectthe Timeline doesnt Finish before you Start it again upon hitting the next Tile, and therefore the Lane Index never gets updated

@mightyenigma The timeline only last .10. I could try changing it but I feel like it is long enough for it

@mightyenigma I watched my event graph fire off to ensure it was doing it in time in order to fire off the SetActorLocation node.Everything worked fine it that. So I’m wondering if it’s some sort of error in where it sets the actor.

This is his timeline in the tutorial. It’s small but when I zoom, I can see it well.

This is my timeline.

So can you confirm that Lane Index is getting set by the Finish execution pin from the Timeline? My suspicion is that Lane Index does not get set, so it is always zero.

Uploading a clip of it firing and finishing on Youtube right now so I can post the link.

I’m hoping I am showing you what you meant you wanted to see.

Yep, that proves well that it is NOT the problem I thought it was. It all looks like it should work. Maybe try ticking the Use Last Keyframe checkbox on the timeline.

That doesn’t change anything. I may just have to start playing with everything on it.

Sorry I couldn’t figure it out!

I too have the same problem. For me it is switching correctly for couple of minutes and then it is slowly starting to move from the allocated position that is -320,0 and 320. What is the problem?