This is the best video I could find on the topic. I wish it was a little more in depth, because I'm too stupid to comprehend it all at the speed you're going.
@MosolaStudios
11 ай бұрын
My players keep asking me to add this.... I think this is SUPER FEATURE CREEP! Thank you so much for this. Now at least I can have a look at it.
@BreakingNuyt
2 жыл бұрын
Dude, I can't thank you enough! This is exactly what I needed for my project. This can also be used to customize town NPCs!
@tutmo
2 жыл бұрын
No problem, glad it helped you out. Good luck on your project!
@ParkerDeVenney
2 жыл бұрын
When I say I've been waiting for this for a long time, I mean it!
@tutmo
2 жыл бұрын
Happy you found it useful! :)
@hendrickvanwyk4009
2 жыл бұрын
Thanks my brother for this tutorial. I've been looking for this tutorial for long now.I'm happy now. too much.thank you very much. ✊🙏
@tutmo
2 жыл бұрын
You bet, glad you liked it!
@hendrickvanwyk4009
2 жыл бұрын
You've made my day. Especially when you use Scriptable Object.
@hendrickvanwyk4009
2 жыл бұрын
The only thing missing in this tutorial is gender type to switch between different characters with their own custom clothes and two buttons for male and female.all will be fully completed.💃💃💃
@michal6469
2 жыл бұрын
You're saved my game!!! Thanks!!!
@tutmo
2 жыл бұрын
That’s awesome! Glad this helped you :)
@TylerGreen
2 жыл бұрын
I really enjoyed watching this! I'd love to see a 3D version of it
@tutmo
2 жыл бұрын
Thanks! Glad you enjoyed it! Yeah, I’ve been thinking about it. Haven’t tried this in 3D yet, but it’d probably be a little easier to swap out parts once the models and rigs are set up.
@jasonduboff8432
Жыл бұрын
Researching to do this myself, looking to have a 3d character generator in iOS. If anyone into a similar thing knows of related tutorials, please, please please, let me know! Thank you!!
@durvids474
2 жыл бұрын
Really great stuff! Thank for putting the time to make the video and sharing the project with us, much appreciated!
@tutmo
2 жыл бұрын
No problem, thank you for watching and leaving the kind words!
@jonathanbarone1257
Жыл бұрын
Hello dear! Thank you very much for the wonderful tutorial. I have a question. I have the main animator, and below are his children. The children have Sprite Renderers as it appears in your video. But in my case they are not directly associated and therefore the clips do not play, am I doing something wrong? Thanks for your time!
@GoldenJetSkis
Ай бұрын
you put the animator on the parent object. Then in your animation window, click "add property", look for the name of the child object, click that, then click the SpriteRenderer, then click the + sign next to Sprite. Now you can drag new sprites into the animation and it will animate the sprite through the child object from the parent object
@n8ful
2 жыл бұрын
Perfect video. I stopped the video at the outline ~0:53 and figured out how to implement the different parts by myself, I couldn't conceptualize how I would go about doing this whole thing. Thanks a ton and I suggest including the outlines every video!
@tutmo
2 жыл бұрын
Nice! Glad the outline helped you out :)
@hoangdaovan2399
2 жыл бұрын
How do I reference the Animator layout for each body part game object. I was tried to renamed the child object then the sprite renderer wasn't rendered. Can u help me. sorry about my English
@a.m.thepro4956
11 ай бұрын
Whats the difference between body and then torso and legs
@DavrK
Жыл бұрын
is there any way to make the animation process from the sprite sheet automatic? cause making animations for every single sprite takes a lot of time and seems quite unnecessary for such an easy task
@tutmo
Жыл бұрын
Hey yes, you can create Unity editor scripts that automate manual, repetitive tasks like that. When I used this approach in a project, I created a folder structure with consistent naming. Then the script ran through all the Sprite sheets in each folder, put together all the frames for each animation, and saved them back to the folders. Hope that helps!
@DavrK
Жыл бұрын
@@tutmo haha yeah its what I've been doing these past 5 days. Made an editor script to cut and name the sprites and another one for the animations. All im missing now is assigning the animations to the right blend tree through script (which I haven't looked into yet but im guessing it's also possible)
@dankel317
2 жыл бұрын
i just started making a character creator, your video was very helpful! thank you. :D
@tutmo
2 жыл бұрын
Thanks, glad I could help! :)
@albinokoi
Жыл бұрын
Thank you for this video! Is it possible if I can make a body part group have different layer order depending on the object selected? For example, in accessories, I plan to add hats that will be layered on top of the head, but some accessories like wings would go under the head and the body. Is that possible? And how do I program that?
@lolwizbe
22 күн бұрын
Thanks for the video, not sure if you'll see this comment or not. If I just want to change the color of certain body parts, what would the best way to do this be? I can obviously access the spriterenderer component and set that (not sure if this is the best way or not) but how could I save this to the animator? Would the animation overwrite the sprite renderer color change if I just handle color this way Or would it just instead be better to have 4 individual versions of the same outfit, just in different colours. I was thinking of just splitting each body part and changing the sprite colour in a script instead?.
@Netherzapdos
Жыл бұрын
At 2:46 after finishing step 4, only the bottom animation layer is playing with the body, hair, and torso not playing their animations. What did i do wrong?
@Netherzapdos
Жыл бұрын
@@nicolenavarro3942 I followed this tutorial instead www. youtube. com/watch?v=bEZDCBSdjQw&t=347s&pp=ygUZbXIga2Fpc2VyIGFuaW1hdGluZyB1bml0eQ%3D%3D
@chudyie
2 жыл бұрын
superb
@MajinMaster97
2 жыл бұрын
This tutorial is fantastic, but I'm struggling with actually tying this to the button ui; I've tried to set it up exactly as in the tutorial but I still can't get the player's layers to update. DOUBLE EDIT: I can see in the inspector that my body parts are updating, but the new animations are not actually being applied to the sprite renderer; I have the correct renderers referenced in each animation, but they still won't update?
@stonegolemstudios
Жыл бұрын
Actually having the same issue. It shows the in the animator that the animation is playing but only the body will change the sprite. Did you ever figure this out?
@tirilmariepedersen6956
Жыл бұрын
Not sure if i understood entirely, but if you can see that the "Sprite renderer" has a sprite and u still can't see the animation, u might want to check two things; 1. Your layers and sorting of those layers (you can find it in the "sprite renderer" under "additional settings") 2. In your blend trees (idle and walk) in the Animator controller, check that all your sprites has the same order; ex: idle_south, idle_north, idle_east, idle_west, walk_south, walk_north, walk_east and walk_west. Hope it helps! C:
@tombombadild5957
9 ай бұрын
Same issue does not work
@kauuu4137
Жыл бұрын
Hey what steps should I follow if I want to add a new skin color or shirt color for example. I have the new sprites sheet ready. I added new animations for the new option, I made a new scriptable object and then added it to Body Selector script but when I play the game, it is not visible. For example, if I select the new option shirt, it is naked. What should I do?
@melihaybar6090
2 жыл бұрын
nice video helpful
@tutmo
2 жыл бұрын
Thank you, and thanks for watching!
@pixelpat5276
Жыл бұрын
Thank you for your cute video. What if I wanted to swap a torso clothing item with one that was a different size and covered the hands lets say?
@stonegolemstudios
Жыл бұрын
First thank you for making this video =) Having an issue making the sprites change on other body parts other than the body. Any ideas? Am I setting them wrong in the animation panel?
@RaphzTube
2 жыл бұрын
I`m having an issue that it only shows one of the layers and it need to have a renderer on the parent object. When I only have them on the children and only an animator on the parent nothing is rendered. DO you have any idea why that might be? Thanks!
@Alan-kq3cb
2 жыл бұрын
Same is happening to me, might be that we are using the latest version of unity?
@tutmo
2 жыл бұрын
Hmm, is this happening with the default project or animations you made? It sounds like you might’ve created an animation using only the parent GameObject instead of referencing the body part GameObjects/renderers.
@RaphzTube
2 жыл бұрын
@@tutmo Hmm this makes sense, I'll try to redo that
@Netherzapdos
Жыл бұрын
Hey were you able to solve this?
@RaphzTube
Жыл бұрын
@@Netherzapdos Not exactly, I managed to get it working using a animator for each object instead of using layers =/
@andrzejsawpl6887
2 жыл бұрын
Qustion : If i have comectics for exaple like face cosmetic like glasses . If my model turn around(facing back) soo you can;t see face do i remove glasses or do something else?
@tutmo
2 жыл бұрын
Hello! You can play around with the sorting order, but when I encountered this same thing, I personally found that including blank images was best overall solution. Mainly bc I wanted to support a variety of cosmetics and some did show a bit (maybe just a pixel behind the ears for glasses or something). There might be a better way, but for my project, just having blank frames when not visible at all was the cleanest way I could think to keep it scalable for all sorts of cosmetic shapes and sizes.
@violetevans5214
2 жыл бұрын
hey did you make your own art? cause id love to know how to import pixel art into unity and what kind of sprite sheets or character sheets to use
@tutmo
2 жыл бұрын
Hey! I did use my own art for this. I create and organize the sprite sheets in a program called Aseprite. If you haven’t used it, it’s like Photoshop for pixel art. You can even test animations in it before exporting all the frames. But after that, I just add it into Unity like any other png image and slice it up using Unity’s 2D grid slicer. Once a sheet is sliced, you just need to setup the animations using the relevant key frames. Hope that helps!
@violetevans5214
2 жыл бұрын
@@tutmo yeah I’ve got asperite and love using it thanks that sounds good!! :)
@BeanBunnyBass
2 жыл бұрын
@@tutmo I'm having extreme difficulty setting up the animations using the relevant key frames. I have the sheets in unity and sliced up. It seems like I should just be able to drop them in the animation clips, but I can't. Can you please help?
@tutmo
2 жыл бұрын
Hey! Sorry to hear you’re having issues with it. Are you seeing that red crossed-out circle when you try to drag a Sprite onto the animation? If that’s what’s happening, try going into the animation using the Animation tab instead of the Project folder/tab. To do that, select the Player GameObject (or any child of Player), open the Animation tab (which you probably already have open), left click to expand your list of animation clips (it should show all animations associated to the Player GameObject’s Animator), and select the one you want to edit. Even though this probably looks the same, opening it this way should now let you replace and/or add your own sprites to the key frames. Hope that helps!
@BeanBunnyBass
2 жыл бұрын
@@tutmo I tried this. When I do this, I only get the files with 0 in their names, such as body_0_idle_down. I can't get the animation tab drop down to show me body_1_idle_down. I haven't added any more animations yet. Do you know how I can get to anything with a 1 or higher?
@MrNewRevolutionary
3 ай бұрын
But you never actually explain how you've linked these animations to each of the child components of the player object? At what point is th animator being told to update the child objects??
@GoldenJetSkis
Ай бұрын
you put the animator on the parent object. Then in your animation window, click "add property", look for the name of the child object, click that, then click the SpriteRenderer, then click the + sign next to Sprite. Now you can drag new sprites into the animation and it will animate the sprite through the child object from the parent object
@lucinfernos
2 жыл бұрын
how do i get the buttons working? you didn't exactly explain the UI aspect of this script 😅
@tutmo
2 жыл бұрын
Hey! Yeah sorry, I assumed most people watching would have their own UI they’d just want to add parts of this into. The only tricky part is remembering to assign the index value of the body part the button controls. Other than that, you need to have the body part selection (previous/next part) method added into the button’s click event list. When clicked, it calls on the next or previous part selection method, feeds in the relevant body part index value, and updates the player’s body. Hope that helps!
@vraidm
Жыл бұрын
How make the body parts manger work if you want make a 2d game witout direction
@PhazonBlaxor
2 жыл бұрын
Thanks for the tutorial, but to me this was overly complicated and time consuming. Do I really need to make animations for every single body part and set separately? That's just too much of a hassle man! Just imagine having more body parts separated out like shoes, pants, hair, belt, necklace, etc. and creating tens of sets. The amount of animations you need to manually make and manage becomes insane. Instead I opted for writing my own animation system that can assign the character any sprite set from simple enum values, without having to manually make animations each and every time I want a new sprite set. Also the code itself is simpler and I don't need to use Animator at all. Perhaps this is good enough for most people out there, but I want to save time as much as I can personally.
@tutmo
2 жыл бұрын
Hey, thanks for the feedback. You’re right, I don’t manually create the animations as it would be exponentially time consuming with more body parts. In my actual game, I used Unity Editor scripts to slice up and assign all keyframes automatically. I didn’t cover any of that in this tutorial b/c my solution was pretty specific to the game I was working on and falls outside the scope of this video. But that’s cool you have something that works. Is it a pixel art styled game? I am curious to know how you’re doing it without using the Animator?
@PhazonBlaxor
2 жыл бұрын
@@tutmo Cool! Didn't know we can assign keyframes like that. How do you do that? It was the main problem I had with your tutorial (which otherwise was awesome, there aren't many good tutorials on this subject out there). And yes, I'm working on a pixel art game. My solution is far from elegant, but it works and is silly simple: I have a script on my character prefab that iterates through frames at a set interval. It then fetches the wanted sprites from the atlases according to the current frame, body part, current animation index and the set we want (by sets I mean = different hairstyles, shirts, etc.). It's quite simple to count where the wanted sprite is located within the atlas this way. I use enums for readability purposes to assign the wanted values (such as animation state and movement direction). This isn't probably the best solution out there, but it was super simple to implement and works for my project :)
@shakazulu3253
2 жыл бұрын
@@PhazonBlaxor Genious
@edanpeled4445
2 жыл бұрын
@@tutmo even if it was specific to your game I think that would make a very interesting video. I'm sure the principles could be applied to other projects. Sounds really good.
@nielsjohansen6132
Жыл бұрын
Hi, nice video. Is there a way where the start button actually would save the character design as an image of all 16 sprites? (idle left, right, up, down etc.) Would be nice since it would allow us to use it for another game
@ashleyseibert5129
2 жыл бұрын
Thank you for making this! In theory, if I only wanted to do the character creator portion without the animations I could just follow the last two parts of the tutorial correct?
@cjdrumm
2 жыл бұрын
Hey, is there a way to split a rigged animation into separate parts? So I created a character with a head, individual arms, legs, torso, and pelvis, and then used rigging to animate movement. Can I then take that animation (since I did it together and know it looks correct) and separate the pieces now?
@tutmo
2 жыл бұрын
Hey there, have you tried Unity’s Animation Rigging package? It lets you essentially override/blend animations. Typically you’ll start with a base animation like walking or running, then you can select individual body parts like a character’s arms or head and overlay another animation such as reloading or aiming based on a player’s input. You can also toggle how much weight/strength the overlay animation has in relation to the original animation, so stuff like aiming can be a gradual shift from default to full override (this removes the need to animate transitions between animations). Not sure that directly answers your question, but hope it helps!
@caitlininstereo
Жыл бұрын
Anyone know how to add a collider to the player with this setup? I tried adding a circle collider to the player along with a tilemap collider to my tilemap with buildings. I set them to the same order in sorting and they are on the same default layer. My player is still able to walk through the buildings. I also tried adding circle colliders to the individual body, hair, torso, and legs objects. Any suggestions would be appreciated!
@caitlininstereo
Жыл бұрын
figured it out... had to set the player body type to "dynamic" with freeze rotation on the z-axis and gravity scale set to 0.
@itsspider6156
Жыл бұрын
can anyone help me on discord? if i try to swap, lets say pants the name updates and the scriptable object but my sprite renderer doesnt, so it still shows the animation of the previous pants
@modifiedtv768
2 жыл бұрын
Is this possible with PUN or any multiplayer? Thanks!
@tutmo
2 жыл бұрын
I can’t foresee any reason why this wouldn’t work in a multiplayer game. Let me know if you do it, sounds cool.
@ParkerDeVenney
2 жыл бұрын
So I am trying to replicate this in a different project and for some reason, whenever I start the game, the sprite renderer attached to the body parts aren't updating. Any help with this?
@tutmo
2 жыл бұрын
Hey there! Is your animator referencing those sprite renderers in the animation? More often than not, issues like that happen to me when I record an animation with the wrong GameObject/renderer selected.
@ParkerDeVenney
2 жыл бұрын
@@tutmo I am unsure. I do know that when I go to the animations I've made, it says that the sprites are missing for some reason?
@marcingin4515
Жыл бұрын
@@tutmo Hey @tutmo, many thanks for your amazing video! I have the same problem- how can be animations tied to particular spriteRenderer? I can't find anything in the UI or in docs.
@tombombadild5957
9 ай бұрын
Same issue here.... still not resolved
@richardgomes7d
Жыл бұрын
I tried to open the project on my machine but when I open the code from GitHub it doesn't have the gameobjects and the animations throw an error about the sprites missing. Was anyone else able to open it locally and follow the steps in the video?
@СергейВеселов-б9э
7 ай бұрын
I've downloaded the project and opened it in Unity. Everrything worked as in this video.
@a.m.thepro4956
11 ай бұрын
Does the parent player class have a sprite renderer
@Crazy-ik1ml
Жыл бұрын
Hey man! Nice tutorial i really needed that. Im just curious how do you update the animations since you only call the UpdateBodyParts() function once in the start method. Even after testing your project i still cant figure out how you manage to always update the animations.
@tirilmariepedersen6956
Жыл бұрын
They are updated everytime u click a button, u are calling the UpdateBodyParts() from the buttons when you click em C:
@werq7341
2 жыл бұрын
i have one problem, if i click on animation i have Player: Sprite(Missing!)
@tutmo
2 жыл бұрын
Hey there, is it happening for an animation I made or a new one? This usually occurs if you removed or renamed GameObjects or Components that your animation references. Your error, Player: Sprite (Missing!), means the animation is looking for a Sprite Renderer on the Player GameObject. Unless I overlooked something, I don't think any animations in my project reference the Player GameObject. The Player GameObject should only have an Animator attached to it (no Sprite Renderers). If it is an animation in my project, you can send me the name and I'll take another look. If it's a new animation you're working on, you can fix the error by adding a GameObject named "Player" at the location being referenced by your animation and attaching a Sprite Renderer to it. This might not fix your animation though, it all depends on how it was created. Hope that helps!
@werq7341
2 жыл бұрын
@@tutmo I tried everything, if I add an animator to GamObject "Body" it works, but when I remove it in the animation window there is an error again, adding GmObj "Player" to the body object did nothing, I even tried to make a new animator, compared it to your project and not I have no idea what's wrong : ///
@werq7341
2 жыл бұрын
@@tutmo I noticed that the problem is that the animation refers to the "Player" Object and not to the "Body" Object
@werq7341
2 жыл бұрын
@tutmo ok, now I understand it, it was enough to add the Body> Sprite component to the animation, thank you so much for help!
@tutmo
2 жыл бұрын
Ok, great! Glad you got it figured out.
@a.m.thepro4956
11 ай бұрын
Help my character is just invisible
@СергейВеселов-б9э
7 ай бұрын
the same here. tried to apply this solution to my sprites and while I am running the game - I can't see the player sprite. did you resolve this problem?
@fnidos3211
2 жыл бұрын
Very good video but i have a question. so i'm making a game with my friend, my friend does all the programing and i do all the textures and sprites. my question is: what textures will i have to make?
Пікірлер: 101