Alpha for lerp should be between 0 and 1, but I would also do the setup a bit differently. You can generate path points with find path to location node and then use path points vector array to move from point to point and then use a method I mentioned above to make character move left/right. To move from point to point you can use Add movement input and do some vector math to calculate the direction in which the character should go(next path point). In here you can use lerp, sine and delta seconds to make smooth character rotation, while following the general path. I would create and test each part seperately(find path, movement input, zig zagging), so it is easier for you to debug it.
1 Like