2D Day Night Cycle in Godot 4

Поделиться
HTML-код
  • Опубликовано: 5 сен 2024

Комментарии • 4

  • @jasonwilliams8730
    @jasonwilliams8730 2 месяца назад

    👍

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

    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)🙏🙏

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

      Game 2d

    • @robinlambstudio
      @robinlambstudio  2 месяца назад

      @@truenincillo805 I might make a tutorial on this in the future ( I don't know when, as I am working on other things). To implement this in your game, break it down into pieces. You would want an area on your trunk and detect when the axe or whatever hits the tree, then maybe shake the tree with an AnimationPlayer. Use a variable to store the amount of times cut, and you could also use variables to store the player skill level, size of tree, and use that to determine when the tree falls. You could make the tree fall with the animation player. Use a timer to know when the tree should disappear and make the sprite invisible. You could have Node2ds inside of your tree scene and use the locations of these to spawn your drops after the tree disappears.