Mastering Areas in Godot

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

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

  • @En0834
    @En0834 3 часа назад

    Awesomely explained, thanks.

  • @ewaldschulte6529
    @ewaldschulte6529 3 дня назад +1

    Thank you very much! Nice video! Looks like a good workaround for that issue, but let's hope that Godot comes with a quality-of-life-improvement here in the future :-)

    • @LoonByte
      @LoonByte  2 дня назад

      I think is intended by design. Arrays and Dictionaries tend to be the solution for anything complex in Godot. That said, the CharacterBody node types do have built-in functions like is_on_floor/wall/ceiling, so a special Area-like node type with built in constant monitoring and array could happen.

  • @Ignawesome
    @Ignawesome 12 часов назад

    Why is the dictionary inside the player script and not each area script? Not that I've given it much thought on how to implement it, but fundamentally it feels like the area should be responsible for tracking the bodies inside of it and applying its effects.