Search Unity

Making a selection menu and changing player models

Discussion in 'Scripting' started by Shadowxlr, Jul 3, 2020.

  1. Shadowxlr

    Shadowxlr

    Joined:
    Mar 27, 2020
    Posts:
    27
    So I'm trying to make a selection screen of spaceships for the player to choose from. But How can i replace the player model spaceship each time a different spaceship has been chosen? can't figure out the code. Is there a way to replace the values set for a particular model into values for another model without making different codes everytime? For Example: the score system is set up in a way the score depends on the position of the player in the Z axis. So if i change the player model, can I directly replace the original player model with the new one without writing an extra code each time?

    NEED HELP
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,697
    Check out some Youtube tutorials on selecting a character. You have to first understand to fundamentals of an object selection system that affects later game behavior before you can reason about positions and scores and details like that. One thing at a time!