How to create Destructible Terrain in Godot.
HTML-код
- Опубликовано: 6 сен 2024
- Repo: gitlab.com/god...
Further Reading:
QuadTrees (not maps, oops): en.wikipedia.o...
Normals: en.wikipedia.o...)
Different approach: / how_we_created_destruc...
Music:
"Leaving Home" Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 4.0 License
creativecommons....
I hope you come back soon, your content is so valuable, thank you friend for the videos you have created
Wow I did not realize you had uploaded new content like this, you are someone very talented, wow this is great, thanks friend, I admire you
all your tutorials are top tier - insta subscribed
bit fast but great tutorial, so in essence when you create the map, you fill out the "cut out" with alpha color, have i understod it right ? :D
Yes. And for the physics keep a 2D array copy of the map, since reading the alpha of the sprite every frame takes forever
This is awesome! All we are missing is a tutorial for ninja rope and we can remake worms! :D
Well, as a starting point I have a tutorial on the grappling hook from Teeworlds: ruclips.net/video/Wzrw6_KDMl4/видео.html
@@optionaldev2876 this comments are from 5 months ago. Do we have Gworms already? If not I would be happy to aid with the art.
@@robertoaguiar6230 Thank you very much for the offer, but I'm actually not working on any Godot game right now. I just like tinkering with the engine and implementing small mechanics. (Also, I haven't done *any* real GameDev in the past 5 months anyway)
High quality content here, keep making these vids please.
Hello, is there anyway to add an grass on top of the terrain? Like the green grass on top brown land of the worms reload video you showed?
Actually - using marching squares you _could_ possibly generate a collision mesh for the image.
Please🙏🙏, tutorial, tree cutting, the tree shakes when cut, ((The tree will fall when it reaches the number of times required by the player's skill (cut) - ((example: small tree 2 to 5 times )), (and that the tree drops objects when the tree ends up falling and disappears)
Thank you for this tut.
Worm is one of those tricky English words, it's pronounced "wurm". Nice tutorial, how would you approach this in 3d? In the shader I guess. Might be tricky.
Hi Thanks for the content you are extremely knowledgeable, I'd love to see some slower paced more basic tutorials. I feel like the beginner tutorials on youtube at the moment aren't teaching to do things the proper way, thanks!
Can you make terrain destruction like in Scorched Earth? There you don’t have parts of terrain float in the air, but they fall to the ground
I searched the internet everywhere and can't find a tutorial on top down 2d bridges such as going under and over all with collisions. I'm so lost could you make a tutorial for this?
Nice tutorial.
Your videos are super helpful ! Thank you for making those tutorials :D
Can't believe is GDScript, we seem to use different language, how do you leran this?
Thanks for sharing
When you said you have to make a physics engine for this, is it something that I need to learn or is it already here in the tutorial? I'm kinda new to gamedev and in Godot. Is it also ok to do the script in Godot and does it make a difference, you seem to be using visual studio. Last, how do you use visual studio code for Godot? I apologise for the amount of questions.
For the physics engine it's what I'm talking about really briefly and superficially at 2:23-2:50. You need to understand how to calculate the angle to bounce off surfaces. You need the normal (en.wikipedia.org/wiki/Normal_(geometry) ) for that, but I don't know how to break it down simpler.
If you wanna look at my code (with comments!) for it you can look at do_steps() here: gitlab.com/godotdemos/destructable-terrain-demo/-/blob/master/Grenade.gd#L31
and collision_normal() here: gitlab.com/godotdemos/destructable-terrain-demo/-/blob/master/Collision.gd#L29
It doesn't matter if you code in Godot or in VSC. I just prefer VSC. (Here's how to use VSC docs.godotengine.org/en/stable/getting_started/editor/external_editor.html )
I personally am really bad at explaining basic stuff, which I think is more what you need.
This specific prototype combines intermediate Godot techniques with intermediate physics so it's maybe a bit difficult if you are not well versed in one or the other.
Maybe a tutorial on programming physics (without a physics engine) would help you.
For example, I found this adamdempsey90.github.io/python/bouncing_ball/bouncing_ball.html
I've only skimmed it, but it seems like it might be a good introduction. Or maybe you find something better...
Omg I LOVE worms :O
New videos please
Pocket Tanks!
mehr vids plz ;P
where r new videos):
The method texture.set_data doesnt exist anymore
Probably you figured out by now but for whoever has the same issue:
You can solve this by:
var imageTexture = ImageTexture.new()
imageTexture.create_from_image(fg_data)
fg.texture=imageTexture
@@mmxgn also get_data() doesn't work anymore, what's the replacement?
BRUH
what the f*** is this, i can't understand anithing, what?
Not a beginner friendly engine at all lol..