How to change character in-game?

Hey everyone!

So just to jump straight into this: I want to make a game where you have two characters, and you are able to change which character you’re using in-game. Like in the lego game series where you have like two lego guys and you control one, and then you press a key to change to another character. I don’t want to spawn in characters every time I push a key or something like that.

Is there any way to do this? I guess there must be a way, but I’m just so noob that I’m not really sure how one would do something so complicated (is it?).

Anyways, thanks in advance for viewing and replying to this post. You guys would really help me out if you could help me in some way!

Thanks,

Hi , and welcome to the forums! We all start out as noobs, so we don’t judge on that aspect much. :slight_smile:

Well, if you want to go about it by only spawning them once, then you might be able to try hiding one actor and then play some sort of animation to mask the transition (optional), show the other actor, and set the actor’s location to the location of the first actor. Just remember to unpossess the hidden actor and possess the other when you swap them out.

Hi ,
Here are a few links worth reading through:
https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/PossessPawns/Blueprints/index.html
https://answers.unrealengine.com/questions/50382/blueprint-pawn-switching.html

Hey quality, thanks for following up with those links. I didn’t have the time while I was at work to post the links, but those are both exactly what I was thinking about linking LOL!

Best of luck !

Thank you both! This is really going to help me out!