Download

Cannonical way to switch controls between different kinds of game interactions like in Persona 5

In Persona 5, there are two ways the game unfolds:

  • Third person open world game (where the camera is behind the player and the typical third person controls are available for movement and interaction)

  • Turn-based combat mode which is triggered when you encounter enemies (here the the player cannot move and the movement controls instead move the cursor on choices or as a selector upon enemy to target).

I am a newbie and I do not know the best approach for it. Right now, when the turn-based mode is triggered. I set MaxWalkSpeed to 0 and override all other controls - this approach is getting very messy with lots of state and conditions. (Note: the pawn continues to be the same.)

Is there a better (more modular, few states and conditions) or a cannonical approach to this?