Download link: drive.google.com/file/d/1Mb9Y... All feedback is welcome! My website: rumpledcode.com Company website: double-lens.com Music: Prod. Riddiman x oldboyy - Radio
Пікірлер: 147
@dominiquedossantos66842 жыл бұрын
I've been having a hard time figuring out how I would implement my character selection. I have more specific needs like being able to unlock characters and select a character from the list of unlocked characters. Most videos were fairly long and went into too much detail for me to follow. This was the shortest video, and honestly, I was sceptical at first, but your video was insightful and easy to follow and understand. Great work :)
@aleef1735 Жыл бұрын
For everyone who had a problem with the character not changing on the screen but changing in the code make sure you populate the Characters array with the prefabs already in the hierarchy and not with the prefabs from your assets. Look at 0:50. When you click on the array elements it should highlight the prefabs in the hierarchy.
@tejas79315 күн бұрын
Thanks
@gamecreatorc3 жыл бұрын
I like the pacing and clarity of your video. Coincidentally, I'm learning Unity right now so this taught me a few things. Thanks for sharing.
@RumpledCode3 жыл бұрын
Thank you for the feedback :) I'm glad I could help!
@Semmetje11lolly3 жыл бұрын
Thank you very much! This is exactly what I needed, something simple that works!
@WhileAwayGame2 жыл бұрын
Great and simple tutorial!!!! Really helpful as a beginner!
@safidjef4005 Жыл бұрын
A little optimization in PreviousCharacter() function : you don't have to use an if statement public void PreviousCharacter() { characters[selectedCharacter].SetActive(false); selectedCharacter = (selectedCharacter - 1 + characters.Length) % characters.Length; characters[selectedCharacter].SetActive(true); } you can also store characters.Length value in a variable so it's not calculated each time
@cool_gamertag44882 жыл бұрын
You made this extremely simple for me thank you
@pawelishes10262 жыл бұрын
You described everything so well!!!
@simonvutov75753 жыл бұрын
THANK YOU SO MUCH, its exactly what i needed
@RumpledCode3 жыл бұрын
1:43 - Code
@isaachayward87603 жыл бұрын
Thanks man helped a lot !
@sibertroner3 жыл бұрын
This is great, a question how can I do so that when I start in the selection menu it loads me with the last selected object
@maliktot71825 ай бұрын
I might be too late, but i wanted to ask how you would spawn the player rotated -90 degrees on the Y axis. Great tutorial btw, perfect explanation, no useless talking, you kept it short and clear, thanks.
@nikunjsaraf51503 жыл бұрын
Best tutorial! Thanks a lot
@fffideo3 жыл бұрын
Thank you very much friend, this helped me so much for my project
@RumpledCode3 жыл бұрын
Happy to help!
@nicolasportu2 жыл бұрын
Cristal clear! :)
@sufyana.29963 жыл бұрын
love you man!
@fatihakbayrak23923 жыл бұрын
very good bro, go on
@robocognition83192 жыл бұрын
Nice tutorial. Thanks for help
@nickblaster61842 жыл бұрын
im your 1000th subsriber
@weebaki29943 жыл бұрын
Thanks for the video nice job...But i have some problems Whenever i select the character i start with my previous character.I try to disable the previous character,but as a result nothing happen.In the hierarcy show that the selected character have spawn but it doesn't displayed in my game.What should I do?
@naythun84323 жыл бұрын
Thanks so much! this was super fast and easy. One question: Once the character is loaded in the playable scene, how do you reference the selected character (e.g. to respawn them)?
@ECSOrder662 жыл бұрын
Hi. I use the public void StartGame() as a function for a respawn button, works great!
@PoisonGamesSRB3 жыл бұрын
Thank you, nice one :D Hvala
@StroberriBS3 жыл бұрын
Does anyone know how to load the character you selected when you go back to the main menu? TIA
@tiktokz38433 жыл бұрын
Pozz brate Hvala!
@michaelblosenhauer9887 Жыл бұрын
Hello world, awesome tutorial. I implemented it in my project last night. I knew I was gonna have a problem with my camera movement controller once I switched my player objects to prefabs. I tried using the spawn character script to also set the target for my camera script but failed pretty miserably at that. So, looking for suggestiins on how to get a camera to follow the instantiated prefab. Thanks to anyone that can help.
@bengreat68893 жыл бұрын
I really love this, so short and precise. Keep up the good work. Why not expand on it by adding a lock and unlock feature to it. Other than that 👍🏽👍🏽👍🏽
@georgemarkus86082 жыл бұрын
I know Im asking the wrong place but does anyone know a trick to get back into an instagram account? I somehow forgot the account password. I would love any assistance you can offer me.
@georgemarkus86082 жыл бұрын
@Jude Jad thanks for your reply. I found the site thru google and Im waiting for the hacking stuff now. Looks like it's gonna take quite some time so I will get back to you later with my results.
@georgemarkus86082 жыл бұрын
@Jude Jad It worked and I now got access to my account again. I'm so happy! Thank you so much you saved my account !
@judejad97822 жыл бұрын
@George Markus no problem =)
@pigpeppa53088 ай бұрын
@@georgemarkus8608 Yeah this really is a wrong and weird place
@itsnikko6853 жыл бұрын
is there any way you can make this work like Overwatch style select screen?
@fluffystuff8 ай бұрын
Thanks man I was really struggling to do this on my car game. I added different cars to the game. By the way I added the unlock system myself 🗿
@christopherdoiron42943 жыл бұрын
how can we have character data from a scriptable object show, like character stats? So choosing would be based on more than the sprite.
@_UNKNOWN3 жыл бұрын
Thanks for this
@doganinds3 жыл бұрын
thank You very much ♥
@yousefyousef4952 жыл бұрын
this is lit !!!
@raef4048 ай бұрын
This works realy well!! I'm working a point shop where you get total score at the end and with that currency you can unlock new ones. I already have like item name price and bool if bought but not sure where to go now. Any documentation direction would be nice 👍 I added private void awake() In the character selection c# It has foreach methode to loop at the moment. My mind just took too much in one go Edit: oh this was 3y old vid, my bad
@mehmedakifay40053 жыл бұрын
If I had money, I would like to buy you a cup of coffee. For now, I am only able to say "Thank you"
@_SF_Media3 жыл бұрын
A suggestion : Perhaps make this and a few other videos in a series showing how to create a more complex Start Menu. Really hard to find quality videos on this topic.
@bruhmoment-it9jn3 жыл бұрын
in my opinion and experience start menus are like the easiest thing to make, you just have to have a basic understanding oh how it works and then you can make one yourself
@_SF_Media3 жыл бұрын
@@bruhmoment-it9jn It's not necessarily the UI that I'm having trouble with as much as ting it all together with code. I only have basic knowledge of C# but I can design assets for a UI all day long. I'm sure there are plenty of others that would say the same, hence the suggestion.
@bowl18582 жыл бұрын
Watch brackeys's video about menus
@_SF_Media2 жыл бұрын
@@bowl1858 Did that, and he does a good job of partial menus, but none of his stuff is complete, and none very detailed. Thanks for the suggestion.
@SweetHoneycode3 жыл бұрын
Wouldn't instantiate from the array be a better approach rather than child game objects?
@minecraftabdorahemen6228 Жыл бұрын
thank you brother
@muhammadshahab38893 жыл бұрын
Can you make tutorial to explain to change player with other player during game play, for example, we are playing with car A and we collected something in game play and our car A change into Car B
@justlaugh5932 Жыл бұрын
Thank you Brother
@mogstatroy26022 жыл бұрын
Hello Thanks for the video I felt it was particularly good having watched and followed along with a few other "Character Selection" tutorials. The others were pretty good but seemed over complicated in comparison to yours. Keep up the good work RumpleCode, KZfaq is a harsh and unforgiving environment but if you stick to providing the best for your audience they will help you survive.
@yassenbel77332 жыл бұрын
Thanks so much
@atthiyya2 жыл бұрын
The next and previous button doesn't work for me, i was make sure again and again but it's still not working, can someone help me? but thanks for the video sir ^^
@elicarloz90572 жыл бұрын
Would this work for a 4 player game, where the the four players will be selecting their character at the same time?
@ByteSizeLyt Жыл бұрын
If we wanted this multiplayer, is there any way to make it so that only certain people can use certain characters
@Gamer-l4v9 ай бұрын
good man for link the this menu😏
@sivareno3 жыл бұрын
How to spawn new character to the last character's position?
@sunilshetty55103 жыл бұрын
Please make a video on how to add this player on map
@toptrending6023 жыл бұрын
How you make dark background in this scene ?
@GeniusK Жыл бұрын
thanks
@ez4noobs9502 жыл бұрын
thanks bro
@user-ss9du8ft9z3 жыл бұрын
Hello. I have two cameras. Camera "Games" and "Preview" How to save PlayerPrefs.GetInt correctly when I go to the "Game", it is saved, then I go back to the Preview, it is deleted, then I go back to the "Game", and it saves another PlayerPrefs.GetInt Tried many methods, something doesn't work
@sunilshetty55103 жыл бұрын
How to show the name of selected character in the character selection scene not in the the actual game scene?? HELP!!!!
@ashland6562 Жыл бұрын
When I try to import the script into the button component, the only options are No Function and Monoscript which has string name. What should I do
@bujinkanatori3 жыл бұрын
Natural born teacher
@imheretosleep2 жыл бұрын
Guys can I apply this concept using a scriptable object? I wanted to create a 2D game in which the player can freely choose what kind of weapon to use...
@moingnester69733 жыл бұрын
Its working but the only problem is that The name 'Player' does not exist in the current context
@Blinkers2007GameDev2 жыл бұрын
thanks.
@neilgabrielcarino100 Жыл бұрын
The selected character is not spawning in the game scene.
@mibforunity2 жыл бұрын
Thanks
@demonplayer2372 Жыл бұрын
i did same and my character doesnt spawn in game
@henishmandhania42813 жыл бұрын
Hi awesome tutorial. I have one problem i can get the character to come to the other scene however as its a clone object my camera stops following the cloned player. Do you know how i get can it to follow a clone player?
@rudain40643 жыл бұрын
Same problem bro
@treeeza76013 жыл бұрын
same here
@henishmandhania42813 жыл бұрын
@@rudain4064 hey bro in a different tutorial 3D Skin Shop for beginners part 1 by youtuber rickeydev he answered my question. I used that and it worked in my project so maybe give that a go if it works for you!!
@rudain40643 жыл бұрын
@@henishmandhania4281 thanks buddy
@AGTAtharv10 ай бұрын
heyy i tried using the keys but it didnt work ...i checked the "on click and function "nothing was selected in functions what to do ? it doesnt show me the option to select "CharacterSelection.Next" and previous ....please help
@bigfetcatsshow8693 Жыл бұрын
Cool BUT I want so the player LATER on can unlock the other ones
@Steve-gi2yj3 жыл бұрын
what game object did you use to show the character on the screen? can you give a little more detail or even step by step?
@dkordy2 жыл бұрын
Fantastic, if only you had explained how the camera can follow that chosen character !? I have to dig through you tube now to find it! but thanks anyway, I like the simplicity of this tutorial but incomplete for my needs ... Isn't it logical that the camera will follow the player? how would I direct that camera now to follow the chosen player!?
@lawrence_g3 Жыл бұрын
Did you find a solution?
@BoxxylovesU Жыл бұрын
hmm to who do I assign the player controller script 🤔
@funnycarshorts16592 жыл бұрын
after using this my camera script is not working
@Diertstarr2 жыл бұрын
How are you not getting an error for "The name 'selectedCharacter' does not exist in the current context" !?
@bruce5236 Жыл бұрын
I am getting index out of range error, I check the script for 3 hours and I don't know what is going wrong, help me :(
@mbdesign81183 жыл бұрын
good
@sharodtenkaichiz8581 Жыл бұрын
Where can we download the script
@that1lilguy2 жыл бұрын
i dont undestand, the script is for the game manager right?
@sync34712 жыл бұрын
Choose your character! Your options are bean, bean, bean, and bean!
@ayberktunca48743 жыл бұрын
I implemented the code to my game but when I got in the game scene my camera did not follow the character . Can you help a bit I am absolute beginner and I don't know how to change this :(. ( I thought, like my camera,text and kinda stuff has a refference in my player so , when I use prefab I couldn't use them in the scene because of the prefab) Thanks for the video again btw !!
@paradox49133 жыл бұрын
If I remember correctly, you should be able to just set the camera as a child of the player character and it should follow the character at all times after that. Please, someone correct me if I'm wrong.
@ECSOrder662 жыл бұрын
@@paradox4913 Nah, you good. I was just about to comment that.
@kamman8884 Жыл бұрын
You have to make a tag and aplly it to both players and make a camera folloe an object with that tag
@Madarauchiha-jn3cb8 ай бұрын
Yo quiero cambiar de skin Al mirar un objeto Por ejemplo Soy un balón y miro una maceta Entonces al presionar un botón Me convierto en la maceta
@raisapernu71703 жыл бұрын
So I created an empty gameobject called 'GameManager' and inside it another empty called "Spawner". I see that my chosen character spawns there. So I assume this "GameManager" is "Player" where I put my character controller, 3rd per. camera, collider etc?
@RumpledCode3 жыл бұрын
That depends entirely on what and how you plan to implement in your game. Unfortunately, I cannot really answer your question :/
@docchowda70872 жыл бұрын
thanks, but one thing. i can pick a player, but when I get into the game it goes back to the defualt (red), what do I do
@tejas79315 күн бұрын
getting the same issue. trying to figure it out.
@levelup36013 жыл бұрын
Very very good
@ruisu21053 жыл бұрын
how do I make a camera to follow the clone?
@jonas999lljw Жыл бұрын
did u find a solution?
@glazed91103 жыл бұрын
Great tutorial! I can see that my code is working in the inspector, but I don't see my models appearing in the game view (even though I see it fine in the scene view). Any ideas on how to fix this?
@RumpledCode3 жыл бұрын
Have you checked the position of your camera?
@glazed91103 жыл бұрын
@@RumpledCode Yes I have. I can see the model in the camera preview, but still can't see it in the game view..
@glazed91103 жыл бұрын
I fixed it! I had to change my render mode to screen space - camera, as for some reason the overlay mode wouldn't work.
@kamleshk2673 жыл бұрын
I have a model and it's already working in the game. I don't have the menu to switch between the models, how can I do that?
@RumpledCode3 жыл бұрын
I'm not quite sure what you're asking. Are you trying to recreate the menu from the video and having trouble?
@kamleshk2673 жыл бұрын
@@RumpledCode I wanna create a menu to select a character and play the game ahead. I have made the game but I want something in the beginning which allows user to select a character.
@danielyyi3 жыл бұрын
Kamlesh K like Overwatch or Valorant right? I want to do the same. Pretty sure instead of using the arrow keys u just have like character buttons
@kamleshk2673 жыл бұрын
@@danielyyiit was an assets "incevtor" I deleted all the assets, models etc except the character and third person camera, now I want to add multiplayer features to it. Like if someone open the game remotely we all can see each other in game in realtime.
@danielyyi3 жыл бұрын
Kamlesh K multiplayer is hard, j look up a tutorial
@HingalshDealer3 жыл бұрын
Why not "selctedCharacter + 1" instead of "(selctedCharacter + 1) % characters.Length" in the NextCharacter Funtion?
@HingalshDealer3 жыл бұрын
I understand it now. It is so because it should not be added infinitely, but starts again at 0
@HingalshDealer3 жыл бұрын
very simple code👍
@indiandev15882 жыл бұрын
and sir u have any Idea of It main menu choose car not showing in level unity sir pls reply
@indiandev15882 жыл бұрын
sir pls reply
@bujinkanatori3 жыл бұрын
How to activate those next nad previous functions, Gees! You didnt link them to any game object!
@Madarauchiha-jn3cb8 ай бұрын
yo quiero que cabie de skin como en roblos al ver de frente un maniqui puedes cambiarte de skin
@losamigos5123 жыл бұрын
Doesnt work. All Capsuls are on the scene. Its broken script. its not selected on the scene, but it selected prefabs in project)
@sophiehealey47833 жыл бұрын
when you place them in the scene don't forget to uncheck the visibility mark on the objects that aren't supposed to be visible yet. Then when you start playing the game/ scene it should work
@lucaverschure24892 жыл бұрын
@@sophiehealey4783 still does not work for me
@krobinide96413 жыл бұрын
It doesnt quite work for me. So i got the menu working perfectly fine and i have picked the model i want, but when i click the start button in the selection scene, it does not use the selected character. Instead it chooses the first element in the GameManager (Load Characters Script). Please help me.
@krobinide96413 жыл бұрын
Its ok im so sorry. I found out that i had to put public void start() on my load character script instead of void start().
@krobinide96413 жыл бұрын
@P h o e n i x i fixed it days ago and yes adding build to scene will work.
@BrivsTheInternet Жыл бұрын
i know this is a year later but how did you fix it? I have the same problem and i tried adding the public void start and it still didnt work
@krobinide9641 Жыл бұрын
@@BrivsTheInternet did you add the scenes to the build? it has to be in order as well
@BrivsTheInternet Жыл бұрын
@@krobinide9641 yeah I did it's still not working for me idk why. I copied the video exactly. Did you make any changes to the code or did you copy it exactly too?
@user-ns6yi1dz6x Жыл бұрын
visual scripting plez
@user-ns6yi1dz6x Жыл бұрын
why is there no visual scripting version I looked everywhere but i cant find it
@bujinkanatori3 жыл бұрын
It was deceptive easy. You skipped a lot of things obvious to experienced unity user, but... hey, I have used unity a lot, but long time a go, so I am not a total newbie, but I have problems with your canvas, buttons, and little things. Code is easy.
@alfredraboy3 жыл бұрын
can you put the code in the comment please
@saswatamohanta10233 жыл бұрын
its better if you watch and copy you won't learn anything from copy pasting
@sunilshetty55103 жыл бұрын
@@saswatamohanta1023 agree, but I also need the code 😜
@yashc75623 жыл бұрын
@@sunilshetty5510 The link is in the description for all of the copy-pasters.😀
@alfredraboy3 жыл бұрын
@@saswatamohanta1023 ok
@hasan-bx2vv3 жыл бұрын
@@yashc7562 where can i find it pls
@catheadyt2823 жыл бұрын
does this work with roblox?
@bowl18582 жыл бұрын
This is an amazing tutorial man but i hate your unity setup
@29oppman3 жыл бұрын
scripted worked very well, however virus scanner detected a threat