OptionalDev
OptionalDev
  • Видео 3
  • Просмотров 81 749
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...
Просмотров: 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_...

Комментарии

  • @良い世来いよ
    @良い世来いよ 18 дней назад

    1:08 2:50~3:00

  • @WalkWithPhu
    @WalkWithPhu 23 дня назад

    Godot4: Only need to change RigidBody2D to CharacterBody2D in grass go dot

  • @WalkWithPhu
    @WalkWithPhu 23 дня назад

    Hey ho. I create a branch godot4 (phudinhtruongk18/hook-demo) . Check it if you want sth can run in godot4

  • @WalkWithPhu
    @WalkWithPhu 24 дня назад

    LEGEND wish you the best

    • @WalkWithPhu
      @WalkWithPhu 24 дня назад

      thank you

    • @WalkWithPhu
      @WalkWithPhu 24 дня назад

      Hi mate. Do you want to make it work in godot 4. I can create a pr for it

    • @loveIndieGame
      @loveIndieGame 24 дня назад

      @@WalkWithPhu Already created a PR for it in the repo. Check it if you want

  • @MahdiGerami
    @MahdiGerami Месяц назад

    Teeworlds!! <3

  • @Sunrymoon
    @Sunrymoon Месяц назад

    Where is the 4.x guy 😢

  • @trevsweb
    @trevsweb Месяц назад

    hey this is a great little script thanks for sharing

  • @SkeasySimple
    @SkeasySimple 3 месяца назад

    OMFG Teeworlds. I totaly forgot about that. I absolutly loved it as a child. Thank you for reminding me.

    • @SkeasySimple
      @SkeasySimple 3 месяца назад

      Nice video btw, but a bit slower would be nice. Its hard do follow if its that fast.

  • @LegowynStudios24
    @LegowynStudios24 3 месяца назад

    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

  • @LegowynStudios24
    @LegowynStudios24 3 месяца назад

    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

  • @nightmareTomek
    @nightmareTomek 3 месяца назад

    Amazing tutorial. I'd love to have the project & code, but it's no longer available.

    • @optionaldev2876
      @optionaldev2876 3 месяца назад

      It should still be available. Can you try this link: gitlab.com/godotdemos/grassy-demo/

    • @nightmareTomek
      @nightmareTomek 3 месяца назад

      @@optionaldev2876 Oh, now that link works. Maybe you reactivated it? Anyway, that's amazing. Thank you very much.

  • @truenincillo805
    @truenincillo805 3 месяца назад

    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)

  • @thaocami657
    @thaocami657 4 месяца назад

    my hero

  • @BadDevAthro
    @BadDevAthro 5 месяцев назад

    You do this with a fragment shader, it will be much more optimized

  • @KyleHarmieson
    @KyleHarmieson 5 месяцев назад

    I must have missed the "how to"...

  • @maty64xd68
    @maty64xd68 8 месяцев назад

    is the code in c*

  • @Vexed-dev
    @Vexed-dev 9 месяцев назад

    doesnt work for some reason

    • @domaa_h
      @domaa_h 6 месяцев назад

      its bc he made it in godot 3

  • @Antonego64
    @Antonego64 Год назад

    Why you didn't make an AnimationTree? Can you please make a Godot 4 implementation of your code?

  • @adriel993
    @adriel993 Год назад

    Do you think you can speed up your videos even more? I almost saw what you were doing for a moment

  • @tux314
    @tux314 Год назад

    ok cool

  • @Aiz_._._Dev
    @Aiz_._._Dev Год назад

    Which version of Godot did you use in this explanation??

  • @hasanabbadi3252
    @hasanabbadi3252 Год назад

    This completely breaks in Godot 4.0 btw

  • @ast3077
    @ast3077 Год назад

    Thank you for this tut.

  • @WilsonSilva90
    @WilsonSilva90 2 года назад

    The 3 tutorials you have are absolutely impressive and succint. I wish you had continued creating more content. I'll subscribe, nonetheless.

  • @LineOfThy
    @LineOfThy 2 года назад

    Actually - using marching squares you _could_ possibly generate a collision mesh for the image.

  • @stevenjc1664
    @stevenjc1664 2 года назад

    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.

  • @Alzter0
    @Alzter0 2 года назад

    Thank you so much for this grapple hook! I used it in my online game "Bazookants"!

  • @honesthamster
    @honesthamster 2 года назад

    great video I've a question how can I limit the throw of the chain

    • @LineOfThy
      @LineOfThy 2 года назад

      check the distance between the origin and the hook, and if it crosses a threshold stop the shooting.

  • @katkazam5246
    @katkazam5246 2 года назад

    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?

  • @chaitea9448
    @chaitea9448 2 года назад

    Thank you for sharing this!

  • @dershifter9407
    @dershifter9407 2 года назад

    whats the name of the game on the start i search it for so long

  • @blox6180
    @blox6180 2 года назад

    finally. thank you.

  • @ManiMods
    @ManiMods 2 года назад

    In the chain script it says "var tip_lock = to local(tip)" error

  • @Helvanic
    @Helvanic 2 года назад

    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 !

  • @otakusomot107
    @otakusomot107 2 года назад

    what the f*** is this, i can't understand anithing, what?

  • @oh-facts
    @oh-facts 2 года назад

    no seriously, why did it take me so long to find this channel

  • @pro_rookie_gamedev
    @pro_rookie_gamedev 2 года назад

    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?

  • @ianmclean9382
    @ianmclean9382 2 года назад

    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?

  • @historish165
    @historish165 2 года назад

    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

  • @porradaanimacoes2773
    @porradaanimacoes2773 3 года назад

    New videos please

  • @PokeNebula
    @PokeNebula 3 года назад

    so thankful for this. im making a new prototype and this was PERFECT

  • @juhlyoh4938
    @juhlyoh4938 3 года назад

    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?

  • @OnlySamCan
    @OnlySamCan 3 года назад

    Watch the video on 0.25x speed if new

  • @snowman7514
    @snowman7514 3 года назад

    hmmm spawning a bunch of grass instance sounds like it could lag the game

  • @MrSmith_
    @MrSmith_ 3 года назад

    This was a really fun exercise. Thank you!

  • @AppyTheApe
    @AppyTheApe 3 года назад

    Will these same codes work in a 2d platformer? I wanted to add the very same type of grass with physics lol

  • @pek2602
    @pek2602 3 года назад

    I am addicted to watching this video

  • @willegg8436
    @willegg8436 3 года назад

    amazing tutorial but how do you transfer the mouse click location to the chain

  • @BrunoMeM
    @BrunoMeM 3 года назад

    The results and the turtorial are exactly what I was looking for. Thanks, great work! :)

  • @dr.meenakshikumari6100
    @dr.meenakshikumari6100 3 года назад

    Bro 3d grappling hook?