Search Unity

Changing character in 2d side scrolling game

Discussion in '2D' started by AnhMinhTran, Nov 28, 2017.

  1. AnhMinhTran

    AnhMinhTran

    Joined:
    Nov 28, 2017
    Posts:
    2
    Hi guys, I'm creating a really simple side scrolling game in which the character use the joystick to move horizontally to doge the obstacles. In the start menu, I would like the player to be able to change the character. These characters will have the same script but different sprite and colliders. What is a way to approach this and is there any tutorial that I can follow?
     
  2. Samacvuk

    Samacvuk

    Joined:
    Jan 8, 2017
    Posts:
    30
    What you can do is Instantiate at runtime a prefab for the selected character (you then need a list of prefabs of characters) and an interface UI to display something to the player, so that he can choose (a thumbnail of the model/sprite etc).