Providing various figures to choose from

I want to allow the player at the beginning of the game to choose from various characters, which will then represent the main character in the game. How can I do this?

Hello,

Thanks for the question!

It is not quite simple. I currently see two main approaches:

  1. If all figures have the same logic (the same behaviour) and should only look different: A variable could be selected between different animations (possibly with only one frame/image each) via user input at the beginning and then not be changed again.

  2. If the figures have different behaviour, they could be programmed independently (different object types) and all react to user input – but each under the condition that a common game variable has a certain value (i.e. each figure is assigned a number). By changing this variable, it can then be determined which figure reacts to user inputs.

Is that clear enough? Otherwise, I can add more details :slight_smile:

If you want the character’s camera to follow them, Option 1 works, but Option 2 does not. In the future, it will be possible to have finer control over the game and re-attach the camera to an object at runtime, but this is not yet available.