playMaker

Author Topic: Official Tutorial Request Thread  (Read 66958 times)

riczjoshy

  • Playmaker Newbie
  • *
  • Posts: 2
    • View Profile
Re: Official Tutorial Request Thread
« Reply #105 on: January 24, 2021, 08:15:18 AM »
Hello Sir djaydino, thank you for the reply.I mean the character change in main menu.Then After I choose a character it will play in the scene and when my character die in the game I will go back to select player menu to choose another character without any error in selecting my character. Can you please help me with these Sir djaydino? Waiting for your reply.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 6098
    • View Profile
    • jinxtergames
Re: Official Tutorial Request Thread
« Reply #106 on: January 24, 2021, 09:24:21 AM »
Hi.
It depends on your game, but basically if you load the player within a game scene.
then on main menu when player select you can save the selection as a int (start with 0).
(save in playerprefs for example)

then in game scene load (get) the value  then use an array with the characters in it.
and use array get.
the saved int you need to set as the index.
so if 1st character was selected then it should be int 0, because an array start at 0 not 1.

Then create your player with the prefab you got from the array.