Vision Cones Distance, Direction, and Angles

Поділитися
Вставка
  • Опубліковано 20 вер 2024

КОМЕНТАРІ • 12

  • @tobiasfilms8825
    @tobiasfilms8825 3 роки тому +8

    Extremely underrated! Great audio quality, great visuals, really easy to understand and helpful, why do you not have 10.000 subs?

  • @pfergusovegas
    @pfergusovegas 3 роки тому +2

    I would have liked to see a debug draw of the cone itself, so that you can visually edit your max angle and see how much cone you want, but great stuff as always, Sam!

  • @Stefan-bn4wh
    @Stefan-bn4wh 3 роки тому +3

    Thx!!! Great content like always :) Maybe if you have time could you make a tutorial on how to draw these cones?

    • @SamSpadeGameDev
      @SamSpadeGameDev  3 роки тому +1

      Honestly, if you wanted to draw them, I might just use a sprite and pixel perfect collision checking. It's slower, but it won't matter that much unless you have a lot. The alternative would be to use the draw primitives functions. manual.yoyogames.com/GameMaker_Language/GML_Reference/Drawing/Primitives/Primitives_And_Vertex_Formats.htm
      I'd have to look that up myself as its been years since I've used them for anything. Drawing primitives can also have performance issues as well as they cause batch breaks.
      I'm not sure which would be faster/slower but the sprite version would definitely be easier and what I would start with personally unless you see big performance hits.

    • @Stefan-bn4wh
      @Stefan-bn4wh 3 роки тому

      @@SamSpadeGameDev thx for the reply :) How would go about the size of the sprite as the vision cone is constantly changing in size?

    • @SamSpadeGameDev
      @SamSpadeGameDev  3 роки тому

      @@Stefan-bn4wh if the resolution was high enough, you could scale it. But at lower resolutions that probably wouldn't look very good. In that case you might be stuck with dynamically drawing them using privatives.

  • @Smietsde
    @Smietsde Рік тому

    Very good Video!

  • @headspin4120
    @headspin4120 2 роки тому +1

    Extra thanks!😅

  • @kaspinator5265
    @kaspinator5265 2 роки тому +1

    Is there a way to draw the area the enemy sees? Good video!

  • @MiguelAngelValdepenaDelgado

    thank you for you donload archivo gm 2 thanks

  • @helderlimaletsgo
    @helderlimaletsgo Рік тому

    Thats how game development college should be

  • @MiguelAngelValdepenaDelgado

    oh