Unity Tutorial - Simple Character Selection System

preview_player
Показать описание
Download link:
All feedback is welcome!

Music:
Prod. Riddiman x oldboyy - Radio

Рекомендации по теме
Комментарии
Автор

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.

aleef
Автор

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 :)

dominiquedossantos
Автор

A little optimization in PreviousCharacter() function :
you don't have to use an if statement

public void PreviousCharacter()
{

selectedCharacter = (selectedCharacter - 1 + characters.Length) % characters.Length;

}

you can also store characters.Length value in a variable so it's not calculated each time

safidjef
Автор

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.

drx_viper
Автор

Worked very well for my game! have been looking for this for a while, for some reason other character selections systems haven worked even tho i follow the step by step tutoral. Thanks again!

billybarela
Автор

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.

gamecreatorc
Автор

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.

_SF_Media
Автор

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 👍🏽👍🏽👍🏽

bengreat
Автор

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

sibertroner
Автор

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)?

naythun
Автор

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?

henishmandhania
Автор

Thank you very much! This is exactly what I needed, something simple that works!

Semmetjelolly
Автор

Great and simple tutorial!!!! Really helpful as a beginner!

WhileAwayGame
Автор

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, Youtube is a harsh and unforgiving environment but if you stick to providing the best for your audience they will help you survive.

mogstatroy
Автор

after using this my camera script is not working

funnycarshorts
Автор

how can we have character data from a scriptable object show, like character stats? So choosing would be based on more than the sprite.

christopherdoiron
Автор

You made this extremely simple for me thank you

cool_gamertag
Автор

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?

weebaki
Автор

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.

michaelblosenhauer
Автор

i did same and my character doesnt spawn in game

demonplayer
visit shbcf.ru