I’m still fairly new to blueprint and am having trouble with movement within a lane system in my endless runner prototype. So right now I have it so that the character either moves -/+ # of units in the Y-axis to switch lanes. However, this no longer works after I make a corner turn as he is facing a new direction.
How can I make it so that the direction is updated when he turns a corner so he is able to still move left and right? I would assume I would need to have it so he can move in only his Y-axis and not the world’s Y-axis?
This is what the blueprint setup looks like for the movement right now and it is the same for the Move Right blueprint except + in the Y-axis.
That worked perfectly and was so simple! I knew there was some other vector orr something I had to get from the actor! I thought it was forward vector but I should have been hovering over them as that is X and right vector is for Y!
Thanks a lot for the response!
I had another question though in how I could contain this so you can only move over a certain amount of times? I want there to be only 4 lanes and right now you can continue moving so you move outside of the walls. I would think there is a way to limit the movement so you can only move so many times each way maybe?