- Видео 3
- Просмотров 81 749
OptionalDev
Добавлен 22 мар 2020
Godot Tutorials, Demos and Experiments
How to create Destructible Terrain in Godot.
Repo: gitlab.com/godotdemos/destructable-terrain-demo
Further Reading:
QuadTrees (not maps, oops): en.wikipedia.org/wiki/Quadtree
Normals: en.wikipedia.org/wiki/Normal_(geometry)
Different approach: old.reddit.com/r/Unity3D/comments/7gefbs/how_we_created_destructible_terrain_in_our_game/
Music:
"Leaving Home" Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 4.0 License
creativecommons.org/licenses/b...
Further Reading:
QuadTrees (not maps, oops): en.wikipedia.org/wiki/Quadtree
Normals: en.wikipedia.org/wiki/Normal_(geometry)
Different approach: old.reddit.com/r/Unity3D/comments/7gefbs/how_we_created_destructible_terrain_in_our_game/
Music:
"Leaving Home" Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 4.0 License
creativecommons.org/licenses/b...
Просмотров: 16 951
Видео
How to create a Grappling Hook in Godot.
Просмотров 48 тыс.4 года назад
Repo: gitlab.com/godotdemos/hook-demo Relevant Teeworlds code: github.com/teeworlds/teeworlds/tree/cd96bda72a9228849ac14199e3daaff906341223/src/game/gamecore.cpp#L262 Discuss here: old.reddit.com/r/godot/comments/fy2q8b/quick_tutorial_on_a_grappling_hook_for_a_2d/ Music: "Leaving Home" Kevin MacLeod (incompetech.com) Licensed under Creative Commons: By Attribution 4.0 License creativecommons.or...
How to create swaying Grass in Godot.
Просмотров 17 тыс.4 года назад
Repo: gitlab.com/godotdemos/grassy-demo/ Character Asset: lionheart963.itch.io/4-directional-character Discuss here: old.reddit.com/r/godot/comments/fnbjh3/tutorial_on_how_to_achieve_that_swaying_grass/ Music: "Leaving Home" Kevin MacLeod (incompetech.com) Licensed under Creative Commons: By Attribution 4.0 License creativecommons.org/licenses/by/4.0/ Mix and Jam: ruclips.net/channel/UCLyVUwlB_...
1:08 2:50~3:00
Godot4: Only need to change RigidBody2D to CharacterBody2D in grass go dot
Hey ho. I create a branch godot4 (phudinhtruongk18/hook-demo) . Check it if you want sth can run in godot4
LEGEND wish you the best
thank you
Hi mate. Do you want to make it work in godot 4. I can create a pr for it
@@WalkWithPhu Already created a PR for it in the repo. Check it if you want
Teeworlds!! <3
Where is the 4.x guy 😢
hey this is a great little script thanks for sharing
OMFG Teeworlds. I totaly forgot about that. I absolutly loved it as a child. Thank you for reminding me.
Nice video btw, but a bit slower would be nice. Its hard do follow if its that fast.
If anyone else has an issue with the hook going in the correct direction but facing the opposite way, just change where you subtract 90 degrees to make it add instead
I decided to polish the dynamic camera a bit because it was extremely rigid and buggy extends Camera2D @export var dynamicCameraEnabled: bool = true @export var minDeadZone: int @export var maxDeadZone: int var target: Vector2 = Vector2.ZERO func _process(delta): self.position = lerp(self.position, target, 0.1) func _input(event): if event is InputEventMouseMotion and dynamicCameraEnabled: var simulatedTarget = event.position - get_viewport().size * 0.5 if simulatedTarget.length() > minDeadZone: if simulatedTarget.length() < maxDeadZone: target = simulatedTarget else: target = simulatedTarget.normalized() * maxDeadZone else: target = Vector2.ZERO What this does differently (other than just making it smooth) is it adds the ability to have a max distance from the player. Instead of being able to always move the camera no matter how far away it is from the player, the camera is normalized to always be a certain distance away if the length exceeds the max. It also disables updating the target when the distance is less than the min deadzone to allow for it to actually move when the mouse is not; hence making it look much smoother. The larger the region is then the more smoothing you will have. In other words, if the min is equal to the max then there is one point that the camera will jump to instead of smoothly moving inside the region
Amazing tutorial. I'd love to have the project & code, but it's no longer available.
It should still be available. Can you try this link: gitlab.com/godotdemos/grassy-demo/
@@optionaldev2876 Oh, now that link works. Maybe you reactivated it? Anyway, that's amazing. Thank you very much.
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)
my hero
You do this with a fragment shader, it will be much more optimized
I must have missed the "how to"...
is the code in c*
doesnt work for some reason
its bc he made it in godot 3
Why you didn't make an AnimationTree? Can you please make a Godot 4 implementation of your code?
Do you think you can speed up your videos even more? I almost saw what you were doing for a moment
ok cool
Which version of Godot did you use in this explanation??
This completely breaks in Godot 4.0 btw
Thank you for this tut.
The 3 tutorials you have are absolutely impressive and succint. I wish you had continued creating more content. I'll subscribe, nonetheless.
Actually - using marching squares you _could_ possibly generate a collision mesh for the image.
This is a great guide, and very helpful! One small note: The video is way too fast, and very difficult to follow without using RUclips's frame-by-frame scrolling. A brief pause when showing code would be much appreciated.
Thank you so much for this grapple hook! I used it in my online game "Bazookants"!
great video I've a question how can I limit the throw of the chain
check the distance between the origin and the hook, and if it crosses a threshold stop the shooting.
I implemented this into my code and it works good other than the fact that it shoots only in the top left and no other direction when I copy the code letter for letter it does the same thing... any help?
Thank you for sharing this!
whats the name of the game on the start i search it for so long
That's Teeworlds
finally. thank you.
In the chain script it says "var tip_lock = to local(tip)" error
Very nice, I had self implemented a hook that was quite good but did feel to OP in some cases. I fixed it by using this method of different pulling forces depending on the context. Glad to see I was on the right tracks. Thanks for the video !
what the f*** is this, i can't understand anithing, what?
no seriously, why did it take me so long to find this channel
Hey, I noticed the grapple mechanic has issues when you set and get close to the camera limits; the hook no longer moves towards the mouse accurately or just goes in another direction. How can we fix this?
why do you make a scene for your tiles in your map and not upload the sprite to the tile map and do the collision and tiling through the godot tilemap options?
Just adding this in case anyone had the same issue: PROBLEM - I had a few issues with the grapple not firing where i wanted and just spinning uselessly. SOLUTION - the collision capsule on the chain was too big and was clipping into the ground. Shrank it smaller than the player's collision box and everything works now
New videos please
so thankful for this. im making a new prototype and this was PERFECT
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?
Watch the video on 0.25x speed if new
hmmm spawning a bunch of grass instance sounds like it could lag the game
This was a really fun exercise. Thank you!
Will these same codes work in a 2d platformer? I wanted to add the very same type of grass with physics lol
I am addicted to watching this video
amazing tutorial but how do you transfer the mouse click location to the chain
The results and the turtorial are exactly what I was looking for. Thanks, great work! :)
Bro 3d grappling hook?