This is the testing Godot forums! All forum posts unique to this forum will be deleted! Please use the main forums here for any posts you want to keep. All forum rules still apply.

3D Melee combat tutorials?

MeshuggenerMeshuggener Posts: 6Member

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 2020 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 2020 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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.