I’m creating a build with two playable characters, each of whom is quite different ie unique attacks, movement speed, mechanics etc. I’d like them to both spawn in the level together, and you can toggle which one you’re playing as by pressing a button, the one you’re no longer playing will simply stand and receive your attacks.
I’ve tried using the player switching mechanic from Gorka Games, but whilst this does let me switch which character the camera is focused on, it doesn’t let me control them. My guess is that this is something to do with the ‘Event Begin Play’, both of my characters have one of these active and hooked up at the start of the level, and I suspect the engine doesn’t know how to differentiate which one should be controlled?
Is there a way I can introduce some sort of variable outside of the characters, something which says ‘If it’s 0 make this character controllable, if it’s 1 switch to the other’, which I can toggle from either character, and that’s what’s used in place of Event Begin Play to activate their controls?
Thanks in advance