3D Melee combat tutorials?

MeshuggenerMeshuggener Posts: 6Member
in 3D

I am new to coding, but I have still through countless YouTube tutorials managed to figure out how to have a character run around a scene with animations and I am so beyond stoked about that! My plan is to next figure out how to have the character swing a little sword, and then to add enemies to swing the sword at. Tutorials for making an enemy that will come and hurt you are plentiful on YouTube, but a tutorial to show me how to make an enemy character in front of me take damage when I click the mouse button are scarce. I suspect that getting a better understanding of what the mystifying letters and symbols I type into my scripts alongside the maker of the tutorial help, so I am about to start watching some tutorials on how GDscript really works. Until I have honed my coding skills, is there anyone who can point me in the direction of a tutorial on 3d melee combat, or maybe someone who would tell me a way of doing it if it could be explained through text?

TLDR: Anyone seen any tutorials on 3D melee combat? If so I would love to see it as well.


Tags :

Best Answer

  • SaitodepaulaSaitodepaula Posts: 48
    edited June 8 Accepted Answer

    If you are new to coding and game dev, I would recommend this steps:

    1. Just get a 3D character walking in a 3D space, begin with a kinematic body (with a collision shape)
    2. Place other kinematic bodies in this 3D space, and make them print something to the console when your character touches them
    3. Make this other kinematic body be deleted after your character touches them for, like 5 times (this would simulate damage)
    4. Make this other kinematic body only be deleted after you click it for 5 times, and your character is in a distance less than, for example 1 meter. Use the signals to begin: https://docs.godotengine.org/en/stable/classes/class_collisionobject.html#class-collisionobject-method-input-event

    Have you tried the 3D platformer demo?

Answers

  • SaitodepaulaSaitodepaula Posts: 48Member
    edited June 8 Accepted Answer

    If you are new to coding and game dev, I would recommend this steps:

    1. Just get a 3D character walking in a 3D space, begin with a kinematic body (with a collision shape)
    2. Place other kinematic bodies in this 3D space, and make them print something to the console when your character touches them
    3. Make this other kinematic body be deleted after your character touches them for, like 5 times (this would simulate damage)
    4. Make this other kinematic body only be deleted after you click it for 5 times, and your character is in a distance less than, for example 1 meter. Use the signals to begin: https://docs.godotengine.org/en/stable/classes/class_collisionobject.html#class-collisionobject-method-input-event

    Have you tried the 3D platformer demo?

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file