Can someone suggest me best way (which doesn’t cause bugs) to switch lane / attach my player character to that spline and keep following it (through) multiple instances of the same blueprint class.
I’ve tried several ways (referencing overlapping blueprint with trigger boxes, array of spawned class etc.) but none of it worked perfectly.
Attaching other shots of blueprints I have. Spawn code is identical to Official Endless Runner Tutorial.
If anything is Unclear, please ask me. Thank you for your time & response in advance!
Cheers!!!
Lane Spawning in World
Lane Blueprint with 5 spline components (spline point auto generates via a macro)
Lane Switching in player controller, bounds to an int & enum, which changes on press of A or D
How I was trying to do it. Getting the reference of the next spawned class of lane, getting the spline component and attaching the player to spline
On spawn of first few lanes, the character is spawned at the spawn point(via a arrow component on first spawned class) & gets attached to the middle lane (Spline component)