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!
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 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.
Extremely underrated! Great audio quality, great visuals, really easy to understand and helpful, why do you not have 10.000 subs?
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!
Thx!!! Great content like always :) Maybe if you have time could you make a tutorial on how to draw these cones?
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.
@@SamSpadeGameDev thx for the reply :) How would go about the size of the sprite as the vision cone is constantly changing in size?
@@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.
Very good Video!
Extra thanks!😅
Is there a way to draw the area the enemy sees? Good video!
thank you for you donload archivo gm 2 thanks
Thats how game development college should be
oh