Hi all, I’m trying to create an on rails shooter game where the player follows a predefined track but can control the character moving left and right on the Y axis.
So far I the player follows the spline perfectly however when I try to manipulate the Y position of the player it bugs out and I can’t work out how to fix/make this work.
Question
My question is how can I let the player move left and right whilst on a spline being controlled by a timeline? Or is there a better way of doing this?
How it worked before
I previously tried coding without a timeline to follow the spline and it worked like this, but still couldn’t work out how to control the players Y axis. Then switched to trying timeline as I had more control over event and length of level etc.
The original version looked like this.
Functionality
Currently this is what the timeline version code looks like,