How to Make a 2D RAGDOLL in UNITY (Stick Figure)
Вставка
- Опубліковано 24 лис 2024
- Physics based ragdolls are fun!
And stick figures are easy.
In this Unity Tutorial learn how to setup your own 2D Ragdoll skeleton that you can easily build from to include Movement and Skeletal Animation. By the end you should have a ragdoll that's able to stand on its own 2 feet.
Or... write up a grappling hook script and laugh as your ragdoll flops around - the world is your oyster.
✨Want to support the channel?
Buy me a coffee ☕: ko-fi.com/bmoli
➤LIKE the video if you enjoyed, it really helps the channel!
➤Don't forget to SUBSCRIBE for all the upcoming content.
➤Join the new DISCORD SERVER: / discord
We have channels to help you with your problems!
➤Want to make video games? Start with my tutorial Playlist: • Epic Unity Tutorials
➤5 Minute Tutorial Series: • 5 Minute Games
Thanks for watching!
#bmo #unity #tutorial
Make standing up and movement tutorial PLEASE
YEPPP PLEASSSEE
Yeaa pleeese
//make sure to add this to the Player and ignore the errors
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
CharacterController characterController;
public float jumpSpeed = 8.0f;
public float gravity = 20.0f;
public float speed = 9.0f;
private Vector3 moveDirection = Vector3.zero;
private void Start()
{
characterController = GetComponent();
}
void Update()
{
var horizontal = Input.GetAxis("Horizontal");
var vertical = Input.GetAxis("Vertical");
transform.Translate(new Vector3(horizontal, 0, vertical) * (speed * Time.deltaTime));
if (characterController.isGrounded)
{
moveDirection = new Vector3(Input.GetAxis("Horizontal"), 0.0f, Input.GetAxis("Vertical"));
moveDirection *= speed;
if (Input.GetButton("Jump"))
{
moveDirection.y = jumpSpeed;
}
}
moveDirection.y -= gravity * Time.deltaTime;
characterController.Move(moveDirection * Time.deltaTime);
}
}
@@mastcharub7177 thank you sir
u know what i usually dont sub to the youtube channels that help with coding and unity etc etc but ur content is actually entertaining, keep up the good work :)
hope u continue the series bc im clueless lmao
I appreciate that!
are you kidding?
how does this man not have more views, you deserve more subs and likes dude, and i would love a tutorial
on stick figure movement.
appreciate it!
Love the way the ragdoll man is tossed around
.... and he looks great balding 😏😏😏
He really does
**runs to neighbor's house, bangs on door** He made the torso into a floor!!! He made the torso into a flooor....
LMAO
i dont understatnd
@@Ventinky he used the same sprite for the torso and ground
......... also r/woooosh-
unless that reply was a joke-
The man strikes again - well done
Thank you friend
Another good one dude, nicely explained. Thanks!
Thanks! Happy to hear it :)
best tutorial I have ever seen
Very helpful! Thanks
its a really quick and easy tutorial yes
Happy to hear that!
You found your style
Good info
Great delivery!
Keep going!
thanks dude! i know your channel will grow so fast :)
better than most tutos on ytb
when will you record ragdoll movement tutorial?
btw you deserve a lot more, and you'll get it sooner or later. just keep it up!
This Man Voice Touched y heart
Man I found your video about the input system and subbed, your vids are amazing and you are upholding that opinion very well 👏
Please make a movement, i had fun with the ragdoll you made for like 30 minutes. Very good video!
MORE TUTORIALS PLEASE 👍👍👍
Workin on it!
Bro this guy is amazing he's funny as well
Very informative incredible
I'm talking about the stickman
This Tutorial Help me!👍I Recommend it VERY Much :)
please do ragdoll movement
Would love another tutorial on movement/animation!!!
Loved it bro
lol nice vid bro!
Thanks! This helped me a lot.
Glad to hear it!
I’ve done everything but when I press play my character just float there. I have rigid body 2d and everything as well.
same
Good. Liked and subscribed.
what is the reloloution for the stickman image? and btw, good video, nice explained!
Any size is relatively fine.
@@Block21312 Thanks!
havn't you already made a video on 2d ragdolls?
Nope! I talked about Skeletal Animation, but this is a pretty different subject. (Though you definitely can use Skeletal Animation with a rig like this, you kind of have to)
fun tutorial :D
Thanks! 🙏
Im your 2,500th viewer!!
🎊🎉👏🙏🎊🎊
very helpfull mate thank you from bottom of my rigid 2d body
Your next game in 48 hrs: 2D Rag-dolls in space fighting light-saber wielding pandas. I'll be waiting...
I'm into this
thx mate this helped a lot
I sliced my different parts into their own bits, but they aren’t made separately in the assets.
can you please make a tutorial on moving the ragdoll. i know im late but i cant find any good videos
Good stuff!
nice guide bro, I wonder however why does the pivot point of each hinge come as two separate locations? '~'
Thank you so much!
thanks, man but could you show us how to make the player move
Can you update this for new Unity/explain why my torso remains unconnected? It detaches even though I've followed your video to the letter.
Hey BMo, I don't have Photoshop so is there another way to do that?
thanks I subscribed
Appreciate you 🙏
For anybody struggling with this:
Under your "Hinge Joint 2D" component, there is something called "Connected Rigid Body". Drag the sprite you want your limb to connect to into the box.
For example:
When connecting your arms, drag the torso sprite to the "Connected Rigid Body" variable.
I was stuck on this for like 15 minutes and I got frustrated LMAO
WHY IS THIS THE MOST POPULAR COMMENT IN THE VIDEO EVEN TOUGH IT LITERALLY HAS NO REPLIES?
hey the head is not working plz help
ok it is working now thanks:)
Haha, nice my dude
@BMo thanks for making this video also can u make a part to like how to make the character move?
Ragdoll animation?
Plus self balancing pls
click on create physics material 2d and then turn the bounce to 5 and drag it on to your floor I will leave you to see what happens
Lol
I got a problem when making the hinge joint 2d because in the conected rigid body the torso doesn't appear to me
hi I messed around basicly make his body parts as dislocated as posible and slowly but surely he will start moving
wo i love it
Please can you make a ragdoll movement tutorial
i love how he reminds me of dani
pls do movement tutorial
4:07 uh mine says none and its not letting me select the torso, it just says None.
This tutorial was awesome! one question though. what software are you using to draw and create the atlas?
Adobe Photoshop
what program do you use to make this game's assets
I don't know C# and can't write a movement script.
Please do the movement tutorial too :3
What size does the Stickman have to be?
how did you make the atlas like what did you use to make it
In this i used photoshop, but you can use anything. Ms paint, gimp, etc
Please do the movement tutorial!
I need your help, i need to make my ragdoll to shoot, but i cant use unverse kinematics for aming, what do i do?
Can u pls make a tutorial on how to add movement to the stickman
Plsssss
I'm your sub
this is great but can someone PLEASE tell me what like app he used to draw the stick figer and if its a unity thing please tell me how to get there
I used photoshop, but my point was you could use any art program. It's just circles and rectangles afterall
@@BMoDev yeah i figured it’s out i just has to be a photo of a stickman
Please please make a movement and standing tutorial PLEAAAAAAAASE
How did you make the stickman? And which program did you use for making the stickman
I used photoshop because I can, but you can use Microsoft Paint or anything really... its just squares and circles :)
@@BMoDev thanks!
please make movement toturial please
how is the head arms legs, etc connected to the body?
through the joints we add in the video which is a Unity component, we tie the limbs to the torso and then things like hands/feet to the limbs
8:37 my stick man stands up for like 2 seconds then falls I don't really mind but it isn't the same although I did create the stickman using a slightly different tutorial
Petition for movement tutorial
Exist to sign
I get an error when im doing the hinge joints, here is what is says
AnchoredJoint2D.anchor assign attempt for 'Right_Leg' is not valid. Input anchor is { NaN, NaN }.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
anyone know how to fix this?
how do i disable the ragdoll?
what do you use to draw the ragdoll?
alraedy found it no worries
Love the tutorial, editing is a bit much. There’s a difference in watching a unity tutorial and watching a Danny video for entertainment
Bruh, my Stickman wont show up in the sprite editor
whenever i edit where i want the pins to be placed the entire head comes with it cany anybody help?
Important!
if it is not working, select everything (apart from the torso )search the connected body and set it to torso!
The Ragdoll Worked Just Fine. But when i put walking animation(This Happend: ua-cam.com/video/e66ICbIBqNM/v-deo.html) How do I fix :7
0:02 THICC
What's the game at 0:15?
Stick Fight: The Game
@@BMoDev Thank you.
my character floats in the air and i think i did everything right
my dudes body is just invisible except his head. um help please
There is 69 comments when I write this lol
Naise ( ͡° ͜ʖ ͡°)
@@BMoDev btw I subbed u deserve more subs
@@SeanXPlayz Appreciate you 🙏
IM NOT A NOOB
100
💯
Didn’t work
BEans
Зделай по русски пж
when you dont have photoshop :/
For this you can use anything! It's just circles and squares.
Gimp, Microsoft Paint, Paint.net, any art program you can get your hands on - there are tons of free ones for all platforms.
@@BMoDev ok I'll try it out thank you
1:31 start