Unity Character Selection System - 2D Platformer

Поділитися
Вставка
  • Опубліковано 4 вер 2024
  • Let's take a look at how to implement a Simple Character Selection System in Unity.
    ● Project Files: github.com/Cha...
    ● Game Art 2D: www.gameart2d....
    ● Playlist Link: bit.ly/3dg1X88
    ● Game Assets: bit.ly/3xVVLtJ
    ♥ Don't Click This! : bit.ly/2Zi3vu9
    ♥ My Second Channel: bit.ly/3jvI8g6
    --------------------------------------------------------------------
    ► Best Budget Gaming PC (Affiliate links):
    5) HP Pavilion 15.6": amzn.to/3aPo8kj
    4) Dell G3: amzn.to/3e5EJlP
    3) ASUS TUF FX504: amzn.to/3e3jWPD
    2) Acer Nitro 5: amzn.to/32YqcC2
    1) Lenovo Legion 5: amzn.to/2R9P5Z1
    --------------------------------------------------------------------
    FOLLOW ME:
    ● Facebook: / developer3.5pro
    ● Twitter: / chaker_gamra
    ● Sketchfab: sketchfab.com/...
    ● Website: chaker-gamra.h...
    --------------------------------------------------------------------
    ► All content by GDTitans is 100% free. I believe that education should be freely available to everyone.

КОМЕНТАРІ • 48

  • @emilian_spielt300
    @emilian_spielt300 Рік тому +3

    very nice tutorial, i have seen lot of tutorials like this but this one is simple, no informations are getting skipped and stuff like that. very nice even one year later.

    • @Erik-Shaxkyan
      @Erik-Shaxkyan Рік тому +2

      Tell me, please, are the skins saved there for all scenes or just this scene?

  • @malikthetalentmaker6001
    @malikthetalentmaker6001 2 роки тому +5

    I cant explain how helpful you are

  • @mortalvoidstudios
    @mortalvoidstudios Рік тому +1

    Thank you for this. This is what we needed to get a base for character selection. Subbed.

    • @GDTitans
      @GDTitans  Рік тому +1

      Thanks 😊

    • @1984ordep
      @1984ordep Рік тому

      did you ever get a double character spawning? I either don't get a spawning first character at all or if I add a player to the scene then it actually spawns a second one but its not animated. Any ideas why my project might be doing that?

  • @halatamer7781
    @halatamer7781 2 роки тому +3

    Hi, I m having a problem in 19:50 the array is not working this is my code: public class CharacterSelect : MonoBehaviour
    {
    public GameObject[] skins;
    public int selectedCharacter;
    private void Awake()
    {
    selectedCharacter = PlayerPrefs.GetInt("SelectedCharacter", 0);
    foreach (GameObject player in skins)
    player.SetActive(false);
    skins[selectedCharacter].SetActive(true);
    }
    }]

    • @sogyshorts5662
      @sogyshorts5662 Рік тому

      Yeah i know why your code Is not working. There shouldn't be that square
      Bracket at the end of code.

  • @1984ordep
    @1984ordep 10 місяців тому +1

    any thoughts how i can use playerprefs to show an icon that will show what characters face after i use this system? I have an animator attached to the face so i was thinking from playerprefs changing the animator controller? how would you code that? THoughts?

  • @Inmbisat
    @Inmbisat 11 місяців тому

    No on UA-cam teaches that deep, thanks a lot

    • @GDTitans
      @GDTitans  11 місяців тому

      I appreciate that!

  • @Bhairab_roy
    @Bhairab_roy 2 роки тому +2

    Thanks
    One of my client asking me to do that

  • @animesongs3992
    @animesongs3992 Рік тому +1

    I'm having problem moving to next screen with selected charecter

  • @puriceful
    @puriceful Рік тому +1

    Hello friend your interesting and well done video, it helped me a lot, I was wondering if instead of the virtual camera you can only use the main camera and how, thanks.

  • @a.b.g9755
    @a.b.g9755 2 роки тому +1

    Please make video on level lock system and unlock that level when previous level is finished. Also unlocking the characters when user watch the rewarded ads...? And how to move player,jump with UI buttons like 2d platformer ?

    • @GDTitans
      @GDTitans  2 роки тому

      That's exactly what we are going to do next

  • @Erik-Shaxkyan
    @Erik-Shaxkyan Рік тому +2

    Скажите, пожалуйста, там скины сохраняются всех сценах или только этом сцене?

  • @ryan-_-7357
    @ryan-_-7357 Рік тому +1

    W human, this was very helpful. Thanks man

  • @weewohoe2366
    @weewohoe2366 Місяць тому +1

    I LOVE YOU

  • @hodeisansebastian3528
    @hodeisansebastian3528 8 місяців тому

    I need help, when I try to go to the previous skin nothing happens.

  • @gory_t4293
    @gory_t4293 2 роки тому +2

    Thanks for tutorial, and I have a question, every time I add character to the shop panel it hidden, so if I add images and put the skins in that images it's will work fine, right?
    Edit: I tried add images and it works well:)

  • @sensei4743
    @sensei4743 2 роки тому +1

    Please make a video on how to create game Mini Militia in unity

  • @iamabhishekchoudhary
    @iamabhishekchoudhary 2 роки тому +3

    Sir please make 2.5d that platformer game android mobile button controls please sir please as soon as possible

  • @alimran6192
    @alimran6192 2 роки тому +1

    Nice video

  • @ISoAce00
    @ISoAce00 Рік тому

    Thank you for this! I have some problems, when I start the game, the character is spawn at check point, but I can't use joystick to control my character, what should I do?

    • @emre-rdm
      @emre-rdm Рік тому

      I'm having the same problem, couldn't find a solution 😢

    • @emre-rdm
      @emre-rdm Рік тому

      I solved the problem

    • @emre-rdm
      @emre-rdm Рік тому

      I referenced the joystick object. I tied a tag

    • @emre-rdm
      @emre-rdm Рік тому

      Joystick = GameObject.FindGameObjectWithTag("Joystick").GetComponent();

  • @the_nawabs2080
    @the_nawabs2080 Рік тому

    if we don't use Last Check Point In our code than what should we add in code please help.

    • @alexandresaiz6047
      @alexandresaiz6047 Рік тому +1

      Did you find a solution to this? i hace the same problem

  • @awabfiras4034
    @awabfiras4034 2 роки тому +1

    Could I use this script in my game without any copyright?

    • @GDTitans
      @GDTitans  2 роки тому +2

      All content by GDTitans is 100% free.

    • @awabfiras4034
      @awabfiras4034 2 роки тому +2

      @@GDTitans thank U

  • @gosong4641
    @gosong4641 Рік тому

    Player perf?

  • @alimran6192
    @alimran6192 2 роки тому +1

    Level and player lock,,,,

  • @darkvoiger89
    @darkvoiger89 2 роки тому

    Pls i need help it says index outside bounds array

    • @nishahasan3334
      @nishahasan3334 11 місяців тому

      Did you find solution to it? I am having the same problem.

    • @JohnWalker-ci4nn
      @JohnWalker-ci4nn 5 місяців тому

      i'm experiencing the same, did you succeed?@@nishahasan3334

  • @dogx4269
    @dogx4269 6 місяців тому

    do you have discord i have questions