Looking for any opinions on a Mario like health system, i.e If the player takes damage or collects a power up it switches between pawns small Mario > regular Mario > fire flower Mario. Should this be done using possession? or is their a different method which will also keep coins and lives collected attached to the overall player.
I’d say your health would simply be an integer that goes from 0-3 (Dead, Small Mario, Big Mario, Flower Mario) and starts at 1, and then, when the player’s health changes, you would switch the player’s mesh/material/scale accordingly
Also, store stuff like player stats, health, level ups, etc. in the player controller rather than the pawn, as this lets you hang onto those values even if you have to swap pawns out (but you can do either way, swap pawns or change components on current pawn)
Also, store stuff like player stats, health, level ups, etc. in the player controller rather than the pawn, as this lets you hang onto those values even if you have to swap pawns out (but you can do either way, swap pawns or change components on current pawn)