Hi Chris and everyone,
I am using Player Switching for the first time as an experiment during a game jam. It's working well and I can switch between 4 characters by simply pressing a chosen key.
My issues are in the creation of dialogues and cutscenes:
1 - During dialogues, when any of the 4 playable characters talk, their name is not displayed. The SubsSpeakerLabel remains empty in the subtitles. My characters do have a Speaker Label in the Player script. The other NPC characters (not the 4 playable ones) have their names displayed properly.
2 - Probably related to the previous issue:
When I make a cutscene, if an action needs to point to one of the switchable characters (for example, with Character > Face Object, I have to tell which Character to turn), I don't know how to tell it which character to choose, as the switchable characters are not in the scene objects hierarchy (they are in the assets as prefabs). As a result the actions are not working, as they can't point toward the correct character.
I believe there's something I don't understand or not doing well, but I can't find out and I'm stuck. I hope you can help me.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
What are your AC/Unity versions?
When Player-switching is enabled, checking the Affect Player? / Is Player? box in Actions should then bring up an additional PopUp box below that lets you specify the exact Player you wish to affect - or leave it as the default value of affecting whichever is the currently-active one.
Sorry, using AC 1.84.3 on Unity 2021.3.45f2
Indeed it was as simple as that!
I always used to pick the player manually from the scene objects. By default (without player-switching enabled) when you check Player line? or Is Player? it just takes the default main character, so it didn't come to my mind that there would be a list with all players now. It's very well thought actually.
Thanks a lot Chris! Problem solved.