Hello every body !
In my solo game, the player will play as several different characters and each character has his own gameplay (a wolf, a human and a bird).
for now, I have implemented the wolf and the human but I think about adding the bird now and after the last reunion we get with team of the project, it is more and more possible that we add a gorilla and an elephant.
I use the Quality Game Settings I bought on the market (here’s the manual).
This asset allow the player to bind the key he want for the game and that’s why each input is deals by BP and all of them pass through the controller BP.
In my controller BP, I have a lot these things :
I will soon change this to set a variable (int or string) for each playable character and replace the branch with a switch…
Then, the events are managed by the character BP and every thing’s fine ^^
My concern is that for each input, I will make this switch thing to redirect the event to the character actually played. I’m afraid that this cost me a bit in performance…
Should I make several controler BP (one by character) and change it in runtime, when the played character is changed ?
Or maybe the cost I fear is very small and should not be bothering me (it applied only on input, after all…) ?
In the case I keep all in one controller BP, I will remove the “is Valid ?” Node… I know what character is played
Edit : It seams I can’t easily swap controller at runtime… So I will put every thing in the same controller BP
Is there a better way to deals with the numerous switches I will have then ?