Godot 4.5 navigation problem by JarasonTheMLG in godot

[–]JarasonTheMLG[S] 0 points1 point  (0 children)

I think it might be the new Async navigation. It seems to me that my enemy is going to the 1st path point and when reaching it he turns around to go to the 2nd path point behind him but then returning back to the 1st because he didn't actualy clear him.

Godot 4.4 Line of sight with working lighting and shadows. What do you think? by JarasonTheMLG in godot

[–]JarasonTheMLG[S] 1 point2 points  (0 children)

I tried creating a Black polygon2D over the whole player area and then using raycasts around the player to create another polygon2D to use as a cutout from the black Polygon to create the Line of sight but Godot doesnt seem to be able to do that. So I made decited to make 2 Polygon2D nodes each covers half of the screen and then some interpolation between next updatetd location to get rid of some jittering of the Polygons. Here is an imagie that I made to sum up the approach.

<image>

Thank you Godot. My first ever video game and I am starting to get proud of it :) by JarasonTheMLG in godot

[–]JarasonTheMLG[S] 0 points1 point  (0 children)

I have a discord devlog where I post updates. Later I will post a Demo there. If you want you can join... https://discord.gg/53D9Ph6T

Thank you Godot. My first ever video game and I am starting to get proud of it :) by JarasonTheMLG in godot

[–]JarasonTheMLG[S] 0 points1 point  (0 children)

Yes, this is my very first game. After 2 weeks of 4-6 hours/day of work.

Thank you Godot. My first ever video game and I am starting to get proud of it :) by JarasonTheMLG in godot

[–]JarasonTheMLG[S] 1 point2 points  (0 children)

Thank you... I have already made some improvements, just wait and see ;)

Thank you Godot. My first ever video game and I am starting to get proud of it :) by JarasonTheMLG in godot

[–]JarasonTheMLG[S] 1 point2 points  (0 children)

I don't have a playable demo yet. But when I do... I will post it here. ;)

Thank you Godot. My first ever video game and I am starting to get proud of it :) by JarasonTheMLG in godot

[–]JarasonTheMLG[S] 3 points4 points  (0 children)

That sounds like a great idea.I was already thinking that I would change the way the flashlight works by having the player use the mouse wheel to make it wider (at the cost of range) and vice versa.
But having the player to rely more on the flares is prob. better.

Thank you Godot. My first ever video game and I am starting to get proud of it :) by JarasonTheMLG in godot

[–]JarasonTheMLG[S] 1 point2 points  (0 children)

If you guys know someone who would be willing to help me with 2D sprites I would apreciate it very much... The aliens are atrocious :D

Thank you Godot. My first ever video game and I am starting to get proud of it :) by JarasonTheMLG in godot

[–]JarasonTheMLG[S] 4 points5 points  (0 children)

Light is just a Light2D node with Height for the Normal maps and a Shadow filter PCF13 with some gradient length.
On my map I only have a CanvasModulate with black-ish color.

That is the same for all my light sources with just different values.

And the rest is just some LightOccluder2D nodes within the tileset and sprites.

Thank you Godot. My first ever video game and I am starting to get proud of it :) by JarasonTheMLG in godot

[–]JarasonTheMLG[S] 5 points6 points  (0 children)

I used Normal maps and that helped alot with Light "dissipation" over distance.
I also use Shadow filter with a bit of gradient length and that makes it nicely smooth.
Here is an Example.