How to Create Unity Combat System for VRoid Studio Model

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ม.ค. 2025

ความคิดเห็น • 125

  • @sahiljagtap7017
    @sahiljagtap7017 ปีที่แล้ว +7

    I am a student learning unity for a project. Thanks a lot for your video.

  • @FacebookHacks1
    @FacebookHacks1 2 ปีที่แล้ว +6

    I want to thank you mate, I'm learning c# and I'm currently following your tutorials, please don't stop making these, I love the way you teach/explain💪🏻

    • @ReForgeMode
      @ReForgeMode  2 ปีที่แล้ว +1

      Aww, thank you! Glad I could help! 😄😄

    • @FacebookHacks1
      @FacebookHacks1 2 ปีที่แล้ว +1

      @@ReForgeMode i also joined your Discord! Big up mate!♥️

    • @ReForgeMode
      @ReForgeMode  2 ปีที่แล้ว +1

      @@FacebookHacks1 Eey! See ya there!

  • @fredqq2003
    @fredqq2003 ปีที่แล้ว +4

    After learning 4 months, I found that a 3D fighting game might be the most difficult part for designers
    Especially, designers have to create a 3d character model by blender or Maya,
    Thanks for your video

    • @ReForgeMode
      @ReForgeMode  ปีที่แล้ว +1

      We usually refer to them in the industry as 3D artists. Designers often refers to the Game Designer instead.
      But yeah, the character asset can make or break a game. In fighting games, you need to make your character stand out from other characters.

    • @fredqq2003
      @fredqq2003 ปีที่แล้ว

      @@ReForgeMode Thanks!

  • @kingmurder8245
    @kingmurder8245 2 ปีที่แล้ว +1

    that ternary operator might come in real handy, been forever since I saw an Enum. I'll be sure check out the discord good stuff!!

    • @ReForgeMode
      @ReForgeMode  2 ปีที่แล้ว +1

      Yes, it is! Glad I could help!

  • @whyareless
    @whyareless 2 ปีที่แล้ว +3

    Yes please, a guide to replace Invector animations would be real nice :)

    • @ReForgeMode
      @ReForgeMode  2 ปีที่แล้ว

      I'll see what I can do 😄😄

  • @catastic9394
    @catastic9394 9 หลายเดือนก่อน +2

    Lots of help thanks alot!

    • @ReForgeMode
      @ReForgeMode  9 หลายเดือนก่อน +1

      Glad I could help!

  • @VALKRYSA
    @VALKRYSA 2 ปีที่แล้ว +1

    oooh new ReForge Mode video!

  • @konataChung
    @konataChung 2 ปีที่แล้ว

    Amazing tutorial!

    • @ReForgeMode
      @ReForgeMode  2 ปีที่แล้ว

      Glad you like it! Hopefully this could help in your project!

  • @anoname6857
    @anoname6857 2 ปีที่แล้ว

    1:25 may i ask u why the character is really grabing the sword. for me it doesnt make sense. or is ur running animation just looking like this? - cause why should it grab that without any more information

    • @ReForgeMode
      @ReForgeMode  2 ปีที่แล้ว

      It was supposed to be a running animation with the sword, but minus the sword. You can see it at the beginning of the video. Nobody runs with two hands grabbing nothing.

  • @Odob13
    @Odob13 ปีที่แล้ว +1

    Please how to change and add animations to in the invector animations

    • @ReForgeMode
      @ReForgeMode  ปีที่แล้ว

      Got it. Maybe we can slip in a small video tutorial later.

  • @aldair.gutierrez
    @aldair.gutierrez 2 ปีที่แล้ว +2

    Sweet!

  • @JimboS1ice999
    @JimboS1ice999 ปีที่แล้ว +1

    "unless this is your intended gameplay"
    It IS!!!!

    • @ReForgeMode
      @ReForgeMode  ปีที่แล้ว

      😄😄 Well, I could see an ice skating or roller skates game use this mechanic...

    • @JimboS1ice999
      @JimboS1ice999 ปีที่แล้ว

      @@ReForgeMode it's more of a concept that's about attacking while you move. Is there a way to do this tutorial without invector? I have invector but KCC is free to etc.

    • @ReForgeMode
      @ReForgeMode  ปีที่แล้ว

      @@JimboS1ice999 Invector is just a player movement controller. You can easily customize it for your own needs, or replace it entirely. And Invector doesn't even includes any attack animations! I added it in.
      Most games don't do moving while attacking for melee because the animation could look weird and feels not responsive. That's why moving while attacking is usually only on ranged attacks (like bows aiming or third person shooter)
      But I'm sure you could try out some new ideas if you'd like!
      The best way to do this is to have the attack animation only works on the top half of the body. This can be easily achieved with Animator Mask. Or you can use some procedural animation for the foot to make it adapt when you attack the enemies.

    • @JimboS1ice999
      @JimboS1ice999 ปีที่แล้ว

      @@ReForgeMode would an animation blend for the top half work? I plan on adding to the script to prevent movement on taking damage. I'm using easy character movement but KCC is free too.

    • @ReForgeMode
      @ReForgeMode  ปีที่แล้ว

      @@JimboS1ice999 It could work if you set your animation to work with it. Otherwise, it could look weird. Imagine a running animation where the legs leans forward, but the upper half is straight while swinging a sword.
      This could happen when you use a running animation for the lower half and a standing attack animation for the upper half. What you need is to find a running attack animation.
      I suggest try it first before fully committing

  • @firstpeoplegovernment
    @firstpeoplegovernment ปีที่แล้ว

    Thank you! Very well explained, unlike others. I subscribed and wil be watching your other tutorials, and look forward to your future ones!

    • @ReForgeMode
      @ReForgeMode  ปีที่แล้ว

      Glad I could help! Next tutorial should be about health bars. Stay tuned!

  • @jonholland2147
    @jonholland2147 2 ปีที่แล้ว

    Fantastic tutorial, im begginner to unity and youve helped a lot, im learning so much following them, but when i get up to 7:57, it doesnt register the enemy taking damage? there is no dmg pop up and the enemy health does not change in its attributes manager. The health changes and dmg pop ups when i hit F11 to test tho. Any help? thank you

    • @ReForgeMode
      @ReForgeMode  2 ปีที่แล้ว

      It seems there might either be a problem with the colliders or the collision check in code. Make sure that the collider is already set up and the collision check tags are carefully typed. It is case-sensitive. One extra letter or lowercase letter in tags can be different.

    • @youssefhabashy8428
      @youssefhabashy8428 ปีที่แล้ว +1

      Hey, i know i am very late but in the off chance you are still stuck on this problem, 1 of the 2 objects that are colliding together needs to have a rigid body, i had the same problem and i managed to fix it like that

    • @ReForgeMode
      @ReForgeMode  ปีที่แล้ว

      @@youssefhabashy8428 That is also true. Specifically, the element which has a script needs to have a rigidbody for the script at act on.
      Sometimes, adding rigidbody fixes this problem 99% of the time.

  • @miyokigg
    @miyokigg 2 ปีที่แล้ว +1

    hey ty a lot for all the tutorials I'd like to know if you know how we could fix hands clipping through clothes during some animations like walking if you have an idea let me know !

    • @ReForgeMode
      @ReForgeMode  2 ปีที่แล้ว

      Glad I could help! 😄😄
      Hmmm, there is no quick and easy fix, I'm afraid. You either have to add cloth physics to the clothes or animate the clothes so that it never clips with the body.
      For Genshin, it was specifically made so that the part of the clothes, like capes, never clips with the body and are procedurally animated. The most notable one is Mona's hat, which does bend around when her hands touch it.

    • @miyokigg
      @miyokigg 2 ปีที่แล้ว

      @@ReForgeMode thank you it's still beyond my skills but I'll figure out and learn how to do this I thought the same but I just hope you knew an easy way but sometimes there isn't easy way I guess 😂

    • @ReForgeMode
      @ReForgeMode  2 ปีที่แล้ว

      @@miyokigg Things do be like that sometimes. We just need to learn more and keep moving forward. Tell ya what, I'll look into it. If I found a better solution, I'll let you know!

    • @miyokigg
      @miyokigg 2 ปีที่แล้ว +1

      @@ReForgeMode thanks ! you're already helping a lot and I hope you keep doing good work :)

  • @coldriki2506
    @coldriki2506 2 ปีที่แล้ว +1

    nice working!

    • @ReForgeMode
      @ReForgeMode  2 ปีที่แล้ว

      Thank you! Glad I could help! 😄😄

  • @temankucing3500
    @temankucing3500 9 หลายเดือนก่อน

    Hello bro, its very helpful. Iany idea how to play only specific animations if some specific body bart collided? Thanks in advance

    • @ReForgeMode
      @ReForgeMode  9 หลายเดือนก่อน +1

      Yes. You can create a separate trigger for different hurt animations in the Animator Window. This does require you to have multiple colliders for different parts of your character's body, and you would need to manage that in your TakeDamage function to trigger the correct hurt animations.

    • @temankucing3500
      @temankucing3500 9 หลายเดือนก่อน

      @@ReForgeMode thank you very much, but why when i open animation tab, it only shows like " hook(read only)" i cant edit the animation , any idea?

    • @ReForgeMode
      @ReForgeMode  9 หลายเดือนก่อน

      @@temankucing3500 Animations are always made read-only unless it's duplicated. In the Project Window, click on the animation you want to edit, then press Ctrl+D to duplicate it. Use that duplicate in the animation window to edit it.
      But then the question is why do you want to edit the animation? In regards to your previous comment, you just need to do everything in Animator window. Mind the difference between Animator and Animation window. If you only need certain parts of the body in the "body hurt" animation, try out Avatar Mask in Unity: docs.unity3d.com/560/Documentation/Manual/class-AvatarMask.html

    • @temankucing3500
      @temankucing3500 9 หลายเดือนก่อน

      @@ReForgeMode many thanks for helping me out❤️ any platform where i can send you image of wherw in stuck? Thank you so much helping me ..

    • @ReForgeMode
      @ReForgeMode  9 หลายเดือนก่อน

      @@temankucing3500 Yes, please join our Discord server and open a forum post. We'll talk more there! (Link is in the video description)

  • @princedlamini9030
    @princedlamini9030 2 ปีที่แล้ว +1

    Bro this is really a helpful control 😸,but I find my self in a tricky situation.when the enemy reaches zero health,how do you remove it from the scene

    • @ReForgeMode
      @ReForgeMode  2 ปีที่แล้ว +1

      Glad I could help! 😄😄
      The simplest answer is to use gameObject.Destroy() in the enemy TakeDamage() function.
      But of course, that will look silly because the enemy just disappears into thin air.
      So you need to use gameObject.Destroy(5) to set a 5 seconds delay while you play the death animation, and probably some fancy dissolve particle effect like in Genshin.

    • @princedlamini9030
      @princedlamini9030 2 ปีที่แล้ว +1

      @@ReForgeMode thanks bro,😂I had to go through about 30 tutorials to find this

    • @ReForgeMode
      @ReForgeMode  2 ปีที่แล้ว

      That's the point of this channel! Quick, straight to the point answer, with some hints on what you should do next 😂😂

  • @QQ-xc6or
    @QQ-xc6or 8 หลายเดือนก่อน

    I have a problem
    I use Cube as a weapon
    When I animate to Attack 3 or attack too close to other objects
    This causes my camera to zoom in quickly and then zoom out quickly flashing
    How to solve this problem?

    • @ReForgeMode
      @ReForgeMode  8 หลายเดือนก่อน +1

      There are a couple of solutions:
      - Turn off object collision for the camera.
      - You can make it so that the camera can see behind solid objects by making solid objects between you and the character disappears
      - Or during combat, the camera will zoom out and will always be behind the player
      - Design the level to be more open-spaced to prevent these.
      It really depends on what experience you wanna have on your game.

    • @QQ-xc6or
      @QQ-xc6or 8 หลายเดือนก่อน +1

      @@ReForgeMode Thanks! I will try to fix it

  • @DevDuckDD
    @DevDuckDD 2 หลายเดือนก่อน

    bro also teach how to make weapon changing system so player can hold multiple items

    • @ReForgeMode
      @ReForgeMode  2 หลายเดือนก่อน

      Sure! I'll put it in the list. I just need to make time for it.

  • @calvingarry7974
    @calvingarry7974 ปีที่แล้ว

    Hey i followed your tuts and came far that am using a dialogue system now and am having one problem whos better than u handling this so i came straight to u. SO , i have a dialogue UI and i have to left mouse click to skip to next dialogue and heres the problem when i click it triggers the attack animation also can u help me with this

    • @ReForgeMode
      @ReForgeMode  ปีที่แล้ว +1

      Well, since animation can only be triggered when you use SetTrigger() function, you can just disable the combat script using SetEnable() during dialogue or cutscenes. Then enable it again when the dialogue is done.

    • @calvingarry7974
      @calvingarry7974 ปีที่แล้ว

      @@ReForgeMode hey thanks I fixed it thanks for the reply

  • @raphaelguitarx5931
    @raphaelguitarx5931 5 หลายเดือนก่อน

    Can this be applied to an empty object attached to the arm for a punch damage?

    • @ReForgeMode
      @ReForgeMode  5 หลายเดือนก่อน

      Yes! You can attach the damage collider anywhere, like the palm of your hand or the point of a spear.
      For more advanced usage, you can even have multiple colliders on a single weapon. So for example, if you want the damage at the tip of the blade to deal more damage like Smash Bros Marth. But be sure to handle the damage carefully in the script, or you can have double hits from two colliders.

    • @raphaelguitarx5931
      @raphaelguitarx5931 5 หลายเดือนก่อน +1

      @@ReForgeMode Indid I copied and created another code for empty objects with colliders for the limbs, now the character kicks and punches :3 :D

    • @ReForgeMode
      @ReForgeMode  5 หลายเดือนก่อน +1

      @@raphaelguitarx5931 Nice! Keep at it! I'm excited to see what you'll make once it's ready!

  • @megiculaaa
    @megiculaaa 2 ปีที่แล้ว

    How is the idea to generate some kind of location? dungeon for example

    • @ReForgeMode
      @ReForgeMode  2 ปีที่แล้ว

      Yes! I've been learning some procedural generation these past few weeks. What kind of dungeon you have in mind?

    • @megiculaaa
      @megiculaaa 2 ปีที่แล้ว

      @@ReForgeMode I don't even know) I'm currently studying procedural generation myself, particularly marching cubes. I would like a cave where monsters would spawn, and it would be a multi-level dungeon like in danmachi if you know. Basically any building on the cave

    • @ReForgeMode
      @ReForgeMode  2 ปีที่แล้ว

      @@megiculaaa That's interesting! The easiest dungeon proc-gen is to have a randomized preset of rooms that connects to one another.
      But I'm looking into something more ambitious, like an actual cave generator.
      It could be a while until we get to procgen though.

    • @megiculaaa
      @megiculaaa 2 ปีที่แล้ว

      ​@@ReForgeMode Yes, of course. That's what I'm saying too, in general I look forward to any generation)

  • @yesimdev149
    @yesimdev149 2 ปีที่แล้ว +1

    It shows atk only what to do if i have to add damage calculation here for crit damage 😅
    Edit : I tried to make it
    if (other.CompareTag("Enemy"))
    {
    int totalDamage = atm.Attack * Percentageatk/100;
    if (Random.Range(0f, 101f) < atm.CritRate) //calculating crit rate
    {
    totalDamage *= atm.CritDamage + (totalDamage * atm.DamageBoost / 100); //calculating damage after crit rate
    }
    other.GetComponent().takeDamage(totalDamage);
    }
    This works just a little damage diffrence
    Edit 2 : Fount it it was because of float and int diffrence in total damage XDD Help me if u can make this code shorter. i don't know coding that well

    • @ReForgeMode
      @ReForgeMode  2 ปีที่แล้ว

      No, no. I think you do nailed it! That is exactly how I would do it!
      As you can see, the more attributes you add, the more complicated the formula gets...

    • @yesimdev149
      @yesimdev149 2 ปีที่แล้ว +1

      @@ReForgeMode Arigato :)

  • @พีรันธร
    @พีรันธร ปีที่แล้ว

    10 :00 i can't add funtion becasue i can't choose another funtion it have just add no function name specified.

    • @ReForgeMode
      @ReForgeMode  ปีที่แล้ว

      Uhh... You mean you can't find the function with that name?

    • @พีรันธร
      @พีรันธร ปีที่แล้ว

      @@ReForgeMode yes

    • @พีรันธร
      @พีรันธร ปีที่แล้ว +1

      @@ReForgeMode
      Ok now I know the problem.I put all code on empty hierarchy to put code and model in hierarchy that why animations model can`t find any code.After I put code in model they show it
      Sorry I bad English.thank this video make me understand concepts easy melee combat

    • @ReForgeMode
      @ReForgeMode  ปีที่แล้ว

      @@พีรันธร Ahaha, I see! I'm glad I could help!

  • @korvalo1
    @korvalo1 2 ปีที่แล้ว +1

    Thank you so much for your work!

    • @ReForgeMode
      @ReForgeMode  2 ปีที่แล้ว +1

      Just doing my job, helping people make awesome games!

  • @Dev.brasileiro
    @Dev.brasileiro 11 หลายเดือนก่อน

    my camera keeps zooming in the floor, how do i fix it???

    • @ReForgeMode
      @ReForgeMode  11 หลายเดือนก่อน +1

      Hmmm... When you say zooming, do you mean it's getting stuck on the floor? Or is it tilting down?

    • @Dev.brasileiro
      @Dev.brasileiro 11 หลายเดือนก่อน

      @@ReForgeMode oh sorry, the animations were the problem, i already fixed it!

    • @ReForgeMode
      @ReForgeMode  11 หลายเดือนก่อน +1

      @@Dev.brasileiro Hey, cheers! Glad you manage to get it work!

    • @Dev.brasileiro
      @Dev.brasileiro 10 หลายเดือนก่อน

      @@ReForgeMode Sorry for bothering, but i can't create an event on my animation, the button is not working :((((

    • @ReForgeMode
      @ReForgeMode  10 หลายเดือนก่อน +1

      @@Dev.brasileiro Event on the animation is displayed by the white strips on top of the Animation timeline.
      If you are able to modify the keyframes, you should also be able to add new Animation Events.

  • @suisenohawatadevelopment
    @suisenohawatadevelopment ปีที่แล้ว

    Hey can you make vriod controller with no jump pleasr

    • @ReForgeMode
      @ReForgeMode  ปีที่แล้ว

      Uhhh... Just disable the space key... That should do it.

    • @suisenohawatadevelopment
      @suisenohawatadevelopment ปีที่แล้ว

      @@ReForgeMode I cant the script I cant

    • @ReForgeMode
      @ReForgeMode  ปีที่แล้ว

      Hmmm... Well, the easiest way is to just disable the space bar.
      And I would recommend learning programming basics first. Roll a ball tutorial from Unity should help you get started.

  • @xavierkemp4618
    @xavierkemp4618 4 หลายเดือนก่อน

    My attacks don’t damage the enemy even though I followed your advice to a T

    • @xavierkemp4618
      @xavierkemp4618 4 หลายเดือนก่อน

      For reference, its saying “NullReferenceException: Object reference not set to an instance of an object

    • @ReForgeMode
      @ReForgeMode  4 หลายเดือนก่อน

      Well, that is an error when you try to call a function but the object is not assigned. My best guess is that you either haven't assigned a component to the enemy, or you forget to use GetComponent when dealing damage.
      Remember that the project file I use in this video can be downloaded from the link in the description.

    • @xavierkemp4618
      @xavierkemp4618 4 หลายเดือนก่อน

      @@ReForgeModethe enemy does have a component and I have written out GetComponent. Do you have any other ideas as to why this problem is appearing

    • @ReForgeMode
      @ReForgeMode  4 หลายเดือนก่อน

      @@xavierkemp4618 Yeah, at this point I think you should just download the project files I provided in the description and compare your script with mine, since I can't just see your project directly.

    • @xavierkemp4618
      @xavierkemp4618 4 หลายเดือนก่อน

      ⁠@@ReForgeModeI downloaded the same scripts and still the same problem. Does this script only work on the VRoid model or can I use it on the starter model in the starter bundle on Unity Asset Store

  • @พีรันธร
    @พีรันธร ปีที่แล้ว

    I have 1 request and 1 qeustion
    1.I can sell game with VRoid model? in game.
    2.Can you make to teach about enemy ai with you Combat System.

    • @ReForgeMode
      @ReForgeMode  ปีที่แล้ว +1

      Let me preface this by saying this is not legal advice. You should always need to verify it by reading VRoid Studio's Terms of Service.
      But as far as I know, as long as those models are your own creation, or you use VRoid premade models, yes. Both commercially and no crediting required.
      As for the AI system? That is planned for the future. But at the rate that I'm working on right, it could take a while.
      Once we get the full-set melee combat, we'll go straight into enemy AI!

  • @kellowattentertainment
    @kellowattentertainment ปีที่แล้ว

    I love your channel but I'd like to see you achieve the same results using the visual scripting. Please, I'm asking you kindly.

    • @ReForgeMode
      @ReForgeMode  ปีที่แล้ว

      I heard you. If more people are interested, I would include visual scripting for my future tutorials.

    • @kellowattentertainment
      @kellowattentertainment ปีที่แล้ว

      @@ReForgeMode Ok, well you can ask in the next upload to see who's interested.

  • @creamsn3
    @creamsn3 2 ปีที่แล้ว +1

    yeyyyyyyyy

  • @ericzhang1515
    @ericzhang1515 6 หลายเดือนก่อน

    my hitboxes dont work

    • @ReForgeMode
      @ReForgeMode  6 หลายเดือนก่อน +1

      Well, I recommend checking if the collider works properly. Enable the Gizmo in the top right part of the Scene and Game window to see if it's there.

    • @ericzhang1515
      @ericzhang1515 6 หลายเดือนก่อน

      @@ReForgeMode it works now thank you!

    • @ReForgeMode
      @ReForgeMode  6 หลายเดือนก่อน

      @@ericzhang1515 No problem! Let me know if you need more help!

  • @ExpertRelic
    @ExpertRelic 7 วันที่ผ่านมา

    its a great tutorial dont get me wrong... but i need a tutorial where enemys attack back... ive been trying to find a tutorial for enemys who attack back and can kill the player AND they have animations but i just cant find it and...im a dumb ass so i cant figure it out my self lol

    • @ReForgeMode
      @ReForgeMode  7 วันที่ผ่านมา

      That's an entirely different tutorial. It will be an enemy AI video. I would do one sometime in the future, since I do want to make a 3D combat system for the luls

  • @Szplays179
    @Szplays179 11 หลายเดือนก่อน

    Bro, the character is not stopping during attack.

    • @ReForgeMode
      @ReForgeMode  11 หลายเดือนก่อน

      That's why you should follow the tutorial to the end. I did explain how to stop the character's movement during an attack animation.

    • @Szplays179
      @Szplays179 11 หลายเดือนก่อน

      @@ReForgeMode bro I follow it the lock movement Bolen is become true, but the character is not stopping.

    • @ReForgeMode
      @ReForgeMode  11 หลายเดือนก่อน

      ​@@Szplays179 Hmmm... Without further details, I can't help much. Can you join our discord server and send me some screenshots so I can figure out what's wrong?

  • @nekojin1164
    @nekojin1164 2 ปีที่แล้ว

    lesgooooo

    • @ReForgeMode
      @ReForgeMode  2 ปีที่แล้ว +1

      Hope I don't disappoint!

  • @joemanebeard8011
    @joemanebeard8011 2 ปีที่แล้ว +1

    wow....i love u

    • @ReForgeMode
      @ReForgeMode  2 ปีที่แล้ว +1

      Hehe... Glad I could help! 😄😄

    • @joemanebeard8011
      @joemanebeard8011 ปีที่แล้ว

      @@ReForgeMode i was trying to reply that but...i realize that i don t have the animation :\ can i utilize mixamo animation?

    • @ReForgeMode
      @ReForgeMode  ปีที่แล้ว

      @@joemanebeard8011 You can. All animations in this video comes from Mixamo.