HANDS DOWN BEST TUTORIAL ON HOW TO DO A CHARACTER SELECTION! Highly recommend this to anyone wanting to do a character selection. Voice is clear, great quality, and he shows you exactly what you want to do. Simple scripts, yet they work. Great video
@n3ken7 жыл бұрын
Hey, thanks for the vouch :D
@BeerfootBandit5 жыл бұрын
Great review
@vinyas07955 жыл бұрын
And the video is also in 1080p HD!!!
@bumpleGrumpGames Жыл бұрын
I was stumped with this problem for 6 weeks now and was really starting to lose momentum until I found your video. Thank you for sharing!
@lukasthompson82998 жыл бұрын
I used a way cut up version of the script. Thanks it helped a lot! My character select screen is set up differently however, so only part of it is going to work for me. Great tutorial, clearly spoken, clearly demonstrated. You are extremely good compared to a lot of people that I've seen on KZbin. You definitely deserve more views and subs.
@do7-s2243 жыл бұрын
Thanks bro its a very useful tutorial. I use this for my car game and it worked. Everyone who need to make a car selector or a player selector can use this tutorial. Its very good.
@Rora1882 жыл бұрын
I watched so many videos and this is the one that saved my game, thanks so much!!
@geonostra42987 жыл бұрын
Thank you so much, I created one which was working but I was having some issues with reloading player prefs(kept adding to index when I would re load so no character would load). Long story short, I re did it utilizing your method and I'm so grateful you posted this video! Thanks again!
@Michael-The-Composer6 жыл бұрын
that is actually a really good fire animation also i love the tutorial because it's pretty hard to find an in-depth tutorial on how to do this stuff and you cover it in the video perfectly. definitely recommended for beginners like me!
@vikrampalsingh82396 жыл бұрын
Thanks a lot for the tutorial. Exactly what one needs. Alot of other tutorials out there are too specific. Thanks again and please keep up the good work.
@haxpor4 жыл бұрын
Thank you for tut video! Just one thing in the target scene, I think we can reduce some memory usage without instantiate unnecessary game objects (the one we didn't select) by directly use Prefab to set to the related script. In my case, I create another c# script allowing user to set prefab objects for all characters possible that user to select. I double checked, only selected character is created within the scene.
@HawkHuman4 жыл бұрын
hey nice idea though.. you know how to solve this error that is when we change char from main scene to game scene my animations not working only idle animation works..
@boudjemaabderrahmane70868 жыл бұрын
Dude,GOD BLESS YOU
@wearwolf42024 ай бұрын
This helped me so much thank you I'm glad I found this
@TropicalMelonMan8 жыл бұрын
This is fantastic, you always explain it in such a way I easily understand! Thank you so much!
@n3ken8 жыл бұрын
Cheers my friend! Share this around to help me out :p
@OneOfTheManyJason7 жыл бұрын
I love your video but how can I select character with different functions and size(collider) and also each character has their own animation or something else. In your video, you are just switching the models which share the same size of collider and no any animation. Could you please teach me how to do that? thanks a lot!
@SD-xt4rp3 жыл бұрын
Thank you so much for this tutorial! Very easy to follow and great result. Exactly what I was looking for!!!! Thank you!
@emranimam926 жыл бұрын
This is the best video for character changing. Really helpful for beginners like me. Really appreciate it brother :)
@MundoTecChannel8 жыл бұрын
Oh man, thank you so much! Just what I needed :)
@jmzulaybar37962 жыл бұрын
Thank you for this tutorial, our group saved by this
@itspav59128 жыл бұрын
Thank you. This is a fantastic guide, especially for 2D.
@nyeeeeeee93466 жыл бұрын
When i replaced 0 with index later on it asks me for an index value and when i click play none of the models are visible
@ZICKFREED8 жыл бұрын
i have error object reference not set to an instance of an object, how fix it?
@TorutheRedFox7 жыл бұрын
go.SetActive(false); doesn't just toggle off the renderer, it toggles off the whole object, which luckily is exactly what I need lol
@simplylogan938 жыл бұрын
Great video! This really helped me out with my own character select. Cheers from Canada!
@pixitales50175 жыл бұрын
Everything works without any problems! You don't really need the if statement anymore after the end of the video: if (characterList[0]) { characterList[0].SetActive(true); } Change private int selectionIndex = 0; and remove the if statement and add this on your start(): characterList[index].SetActive(true); Now it looks more cleaner and easier to read.
@MrMMOAlgoz3 жыл бұрын
Awesome guide ! Thank u for sharing and helping us with our projects !!
@cyco3oy7 жыл бұрын
Thanks again, best explanation on this topic. I would like to see what different appraoches are there to have the selected player spawn in the "desert" scene.
@Glados446 жыл бұрын
This is awesome , this is just what i was looking for. Thank´s man you solve an important thing today :)
@ihavelostcontrol6 жыл бұрын
This was extremely helpful, thank you!
@mg_882jyaai4 жыл бұрын
Excellent, thank you very much .. it helped me, I will not forget your help ✨
@marcuslane62896 жыл бұрын
The first model in being turned off but the others remain visible and buttons do not work .
@jeremyelliott52796 жыл бұрын
ever find a fix for that?
@vinyas07954 жыл бұрын
for those are lazy to write the script take the script :---- using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class CharacterSelection : MonoBehaviour { private GameObject[] characterList; private int index; private void Start() { index = PlayerPrefs.GetInt("CharacterSelected"); characterList = new GameObject[transform.childCount]; for (int i = 0; i < transform.childCount; i++) characterList[i] = transform.GetChild(i).gameObject; foreach (GameObject go in characterList) go.SetActive(false); if (characterList[index]) characterList[index].SetActive(true); } public void ToggleLeft() { characterList[index].SetActive(false); index--; if (index < 0) index = characterList.Length - 1; characterList[index].SetActive(true); } public void ToggleRight() { characterList[index].SetActive(false); index++; if (index == characterList.Length) index = 0; characterList[index].SetActive(true); } public void Confirm() { PlayerPrefs.SetInt("CharacterSelected", index); SceneManager.LoadScene("OnPLay"); } }
@moamenmuhammed24314 жыл бұрын
Thanks tho
@vinyas07954 жыл бұрын
@@moamenmuhammed2431 welcome bro
@chr0my1344 жыл бұрын
thx so much.
@vinyas07954 жыл бұрын
@@chr0my134 👍🏻
@d3zar3 жыл бұрын
you also teach us how save files work. Thank you so much for this video.
@baietzashu945 жыл бұрын
Man...you got one more Subscriber....God bless you...keep doing
@4224Ali7 жыл бұрын
It helped me to make my music selection! thank you brother! You are very helpful!
@marcuslane62896 жыл бұрын
Getting numerous NullReferenceExceptions on the lines. in void start: go.SetActive(false); ToogleLeft: characterList[index].SetActive(false); characterList[index].SetActive(true); and for toggleright: characterList[index].SetActive(false); The code compiles enough to allow me to press play, however my left and right selection buttons do nothing.
@hoshizora9906 жыл бұрын
have you fix it? i'm having the same problem
@pixitales50175 жыл бұрын
Do you have EventSystem in your inspector? If you dont, buttons wont work.
@gamesfordlegend10 ай бұрын
This is wonderful...I like this..I have looked for video like this for like months now .this has far been the best ..simple very clear audible and worked perfectly..buh I just want little changes to the script. I have ui that shows each character..so I want when I click this UI that belongs to this specific character it appears on clicking other ui the character disappear then clicked one appears.hope you understand what I'm saying...I want a script like that so will have to remove the left click and right click ui..is it something you can do for well everyone.most especially me... thank you very much.... great video
@prathamborkar48123 жыл бұрын
Thanks brother ,You solved my big problem
@ASADKHAN-ng1js6 жыл бұрын
I hvnt even complete the video bt thanks buddy the video I was just looking for
@dkordy2 жыл бұрын
You the only one on You tube Who enlarge when writhe in visuall. The only ONE! And only becouse that i Will subscribe and recomend to others. Bdw itd plesent to listnening to youuu
@abdelrahmanmohammed94058 жыл бұрын
how to make the characters unlockable when you level up or for a certain amount of coins
@boudjemaabderrahmane70868 жыл бұрын
understand player pref and u can do it
@digitalDuane8 жыл бұрын
Thanks a million! I just started using your old system, but this one completes taking the character to next level. My question thought, is how do I make the selected characters instantiate or spawn to spawn points in the new level. it's a UNET multiplayer game, so the Network Manager will place them if I can instantiate them. Otherwise they all populate at the Model Container position on top of each other. Or I guess one could offset the model coming into the new scene. Thanks for clearing up the Scene Management update, I'm sure that cleared up future problems before they happened.
@gregoryospina65103 жыл бұрын
best thing ever saved me game
@jkadhn3737 жыл бұрын
hi n3k nice tutorial but is it possible to make the characters to be animated when loading scenes like walking, jumping etc
@2dinunity105 жыл бұрын
you could make the character list a prefab and instantiate it vs hard coding it with a loop
@teekuang10013 жыл бұрын
is that wolf lookin kinda T H I C C !!!
@TheDaKSn4 жыл бұрын
Oh my god this helped me so much! Thank you so much man!
@akash_the_phenomenal4 жыл бұрын
ThAnK you so much.. That's what I m searching for from a week. Please can u make video for button through keyboard video. And also suggest character loading for 2 players .
@XLopencode7 жыл бұрын
If you want to freely choose what scene your player will be -- you can change confirm button to something like this: ////////////////////////////////////////////////////////////////////////// public void ConfirmButton(string levelname){ PlayerPrefs.SetInt("CharacterSelected", index); SceneManager.LoadScene(levelname); } ////////////////////////////////////////////////////////////////////////// In UI Confirm Button, you can fill the blank space in "On Click()" to your scene name.
@hamzamustafa34917 жыл бұрын
very easy to understand and helpful thankyou.....
@n3ken7 жыл бұрын
Cheers my friend, glad it helped!
@foodlover83415 жыл бұрын
This tutorial is sooo good it worked . awesome loved it but what if we want to select character for more than one scene??
@kentgonzales16767 жыл бұрын
I followed all the instructions and i typed the codes correctly but the previous and next button is not functioning. Only the confirm button is responding.
@נעםמטלוב4 жыл бұрын
How to make the camera follow after the selected character? Simple camera following script doesn't work because it cant follow after a characters list, And puting the list and the camera in the same rig doesn't help either
@ilredeigiochi915 жыл бұрын
ty for all tutorials
@noureddineelouali63637 жыл бұрын
Thank you so mush for this tutorial its so helpful
@n3ken7 жыл бұрын
Glad you're enjoying the channel! ;3
@zackcastro47173 жыл бұрын
Greetings, right now I am in the trouble of creating a character store but where the character is obtained randomly, practically with the same mechanism as Crossy road where there is a scene where the player spends a certain amount of money from the game and the machine throws a random character at him and then the player can go to select him in another cutscene where the characters are not unlocked and unlocked. that's what I'm trying to do, however my little knowledge of c # slows me down a bit. Then it occurs to me that perhaps this is a topic that draws attention to make a video tutorial since on KZbin there is not a single video that explains the topic. Greetings
@sahlikh18297 жыл бұрын
your so freeking cool with cool tutoriols
@n3ken7 жыл бұрын
Thanks man! ;3
@nickmalialis68 жыл бұрын
Great tutorial !!! One question, how would I make it so that if I want to also go up or down as well. So I could say change character outfits as an example if I have the wolf selected and press up I could get an alternate version.
@allmight3242 жыл бұрын
Hi, super love your work! just have a quick question. Where did you get the "CharacterSelected" from line 12 under CharacterSelection script. Does it vary from different projects/names?
@ani98327 жыл бұрын
Hey man, I use canvas buttons with player image for choosing between 5 players These 5 players are shown individually in the layout (I don't have Left/Right buttons). What should I do to choose them here, and spawn them in another scene, I have one common sprite for the body which I have added in my game scene, and 5 player heads which i can choose from in the character selection scene, which I have to instantiate as prefabs in the game scene. This is a 2D project. I have to choose two heads here, one for the player and another for the computer. My layout is like this Player 1 2 3 4 5 I can choose any of the five numbers, after I click one of the players, they become the player chosen by the player, I can click one more player and he would be the computer, I cannot click any more player, after both the player and computer have been chosen, I enable the play button, that would load the other scene with the players body, I want to instantiate the players head on the body. Sorry if I couldn't explain properly. I can understand the player prefs and toggling part, but I don't understand how to go about it and choose two different player's heads(sprites) when I set an integer by clicking a button and instantiate their heads(sprites) or use any other methods for that matter.
@JamesPlaysGames955 жыл бұрын
hmm. the toggle seems to be odd for me. do i need to have certain objects active or deactivated in the inspector before starting? i have two objects for my list. if i have only the 1st object deactivated, then the left and right buttons work.(one appears the other disappears as it intended.) BUT, the buttons only work once. so hitting the buttons again makes both objects disappear :/
@deanagalbraith62017 жыл бұрын
Awesome tutorial! I ran into an issue. I have cars as my objects and wheels are separate (going to animate them moving later) but when putting it in list it only shows back wheel and not the front. (applied this to 2d game) any suggestions to have it show other wheel?
@bfilmstudio46206 жыл бұрын
I had put a Menu scene(as a changing scene level unlock system) before a level1 scene and now, it doesnt work , when i select a character, and a scene in a ulock system after, level1 always show only de first character model i cant play with others
@UzumakiNaruto021337 жыл бұрын
In my game i have a character selection menu with 2 buttons, one to choose male character and another for female character. What can i do to "teleport" the character that player choosed to another scene?
@nosticx80257 жыл бұрын
hes showing that in the tutorial...
@Legends-sb6hi8 жыл бұрын
Hey, So I have a position saving script on my character but it works but with this script it brings me back to where the character was originally placed how can I fix this?
@HawkHuman4 жыл бұрын
Hey guys i got one issue That is I have two scenes 1) Main Scene 2) Game Scene Main scene contains character selection window as this video 2) Game Scene as i added two more characters everything works fine in game while changing characters all animations works normal game testing works.. But when i build on android in phone when i test the game .exe the changed char animation doesnt work.. its with default animation of idle.. but in scene preview it works fine but exe game animations not working only idle animation whats the issue ???
@davidmason75195 жыл бұрын
Amazing Tutorial and I love all your tutorial.love you bro you are such an amazing person who makes amazing tutorial for us But i have a question for you and that is i tried this video and it is work.but i have a game that has bunch of cars and when i select a car that car load in another scene which is perfect but my camera follow script which is attached to the camera which follow the car that was not working , and i check a car separatly then it was work so please can you tell me some solution or where i am make,please tell me if you can.please
@BeerfootBandit5 жыл бұрын
Great tutorial but when i return to the selection scene without exiting playmode, or in a build, the buttons wont work anymore. Any help?
@hridoyhasan68114 жыл бұрын
You made my day happy :)
@prathamborkar48123 жыл бұрын
This is one of the best chanel
@thegamingcobra16 жыл бұрын
I have only 2 characters. one male and one female. When I click on the male it goes to the male but when I click it again it goes to the female. and obviously the same for the female. How can I fix this?
@citihostessnewyork95715 жыл бұрын
I love your tutorials! Would you be able to create the same tutorial but to use with Virtual Buttons?
@altanbjk19035 жыл бұрын
Thank you very much.. Its really helpful. But what if i have more than one level how can i set it?
@Donevigor5 жыл бұрын
Previous tutorials that you made for N3K and this new ones @Epitome were really helpful to speed up some dev work I did recently. Let me know if you need any custom 3d models to use in you tutorials.
@hostrohongroiemamadou59165 жыл бұрын
really thanks bro
@shaneforrester86006 жыл бұрын
Hi i loved the video ... just one thing is there a way i can take the model out of the scene when its not in use.
@excellNexcel8 жыл бұрын
This is good stuff...what is your background in unity ?
@shazeerrra6 ай бұрын
Hi, if i have 5 different game scenes is the character stay through all the scenes?
@StockImageOfaRat4 жыл бұрын
I need help keeping track of my character my characters look a bit different from the scenes I need help pls
@DomenicoDiCaro3d8 жыл бұрын
This tutorial is amazing ! I follow it and it work on my project ! I have a question, exists a tutorial to create a shop to "unlock" new character ? Or unlock specific power for each character ? Thank you for your work :)
@n3ken8 жыл бұрын
We have done something similar in the past on our Mobile game tutorial ( The rolling ball one )
@DomenicoDiCaro3d8 жыл бұрын
i'm following it :)
@practicemakinganimation2 ай бұрын
Nice bro. Keep it up
@raisapernu71703 жыл бұрын
I got error "Index was outside the bounds of the array" at 24 which is if(characterList[0])
@havarys3 жыл бұрын
when you copy/paste the ToggleLeft() function and you modify it to ToggleRight() , make sure to modify the "index--" to "index++" too
@bananacrepe17537 жыл бұрын
WOW!! thank you soooo much
@ujjwalraut63407 жыл бұрын
Hand's down to the best character selection tutorial ever. However I have encountered a serious problem. I tried to apply your functionality in a Roll-a-Ball game, where I have created 2 different Roller Balls, each with the necessary scripts needed for locomotion purposes (I have used the prefab of Roller Ball from Standard assets) and I have made a menu where we can select which ball to play with. However as I load the scene, by clicking the confirm button, the move power becomes very low, and it doesn't change even if I increase the value. Please try to clear this problem.
@ujjwalraut63407 жыл бұрын
OK I figured out a part of the problem, basically the engine can't handle an array of gameobjects in my playable scene, so I need to figure out a way to carry that index and spawn the selected prefab at runtime ( instantiate it) at a given position. Any idea how?
@n3ken7 жыл бұрын
Hello Ujjwal, when you have the time post this question here: discordapp.com/invite/etX2zJB under #programming_help and I will get back to you soon. Thanks for staying with us in the channel! ;3
@alejandrozamora34687 жыл бұрын
could u make this as a PDF or something that could be read instead of a video
@motoholicadventures46987 жыл бұрын
how can I show the c# windows form in unity if I click the object? any opinion or video tutorial?
@tomatolicious8 жыл бұрын
A followup video for a 2D variant of this would be great. While the same principle would work, I think it will be more challenging with a lot of different 2 animations and a lot of sprites on the 2d characters.
@jktrejo16 жыл бұрын
Were you able to ever make this happen? Just starting out and the different animations with each player is killing me.
@AlexJrDev4 жыл бұрын
Yo I know it's been years but is there a way to like when u select your character you can't go back and select another one and it saved the persons model
@Gloop_Anderson8 жыл бұрын
Is there a way to make the camera follow certain objects with certain tags via c# script
@marka.alvareznieves92134 жыл бұрын
what if i want to control multiple characters that are loaded in different parts of the map and i want to switch to control that one but keeping the previous one active but not controlled? also can it be in an interactive ui panel like if i want character #5 i press the #5 or scroll on my mouse wheel to reach #5?
@miguelmonreal.88744 жыл бұрын
how would you save a new weapon you've selected and keep it between scenes?
@peymanjeddi7 жыл бұрын
thanks man,this is so gooood and usefull 😍😍😍😍😄
@hoshizora9906 жыл бұрын
how did you not get Null reference issue in Go.SetActive(false); ?
@baynaamn5 жыл бұрын
did u fix it?
@emmaniiistudios69817 жыл бұрын
Can you you do a video on unlocking different characters with coins.
@soo__x14 жыл бұрын
help me . . . . I choice index 1 ball but next scene came index 0 ball
@sibrown64647 жыл бұрын
N3K EN Thanks it's great, how would you change the code so that if you select the wolf it goes to the desert scene but if you choose the bishop character it would go to a different scene?
@ozentertainment17215 жыл бұрын
wouldn't you be able to use code to say 'if index x is selected, load scene (?)'? at least, in words, as far as coding goes, I'm an idiot. I figured just hard code it into the character selection, no?
@ercantoka3 жыл бұрын
thank you so much :)
@danieljeong92067 жыл бұрын
Awesome man!!! thanks a lot!!
@n3ken7 жыл бұрын
Cheers!
@stefandomanegg47237 жыл бұрын
Is it possible to make with this Character Selection a Shopsystem? I have a Problem :c. The "Confirm" Button is always the same button, or not?...
@n3ken7 жыл бұрын
We have done something similar in the mobile game tutorial ( the rolling ball one )
@exTRemeYT_4 жыл бұрын
Thank you so much
@tornikemeparishvili67044 жыл бұрын
Everything works fine with me but I can't add animations to my characters please help