Discuss Scratch

Haydensscratch
Scratcher
29 posts

Seeking advanced pathfinding engine

https://scratch.mit.edu/projects/989260631/

My game is like a tower defense game but enemies can move around freely and attack towers.

I wish to make a map with obstacles, but I ran into a number of issues.

1. Towers and Enemies may try to shoot each other through obstacles.
This is less important as for now I can stick with obstacles that stop movement but don’t block sight, or make a raycaster for each enemy and tower

2. Enemies won’t be able to navigate itself to the base (the thing the player has to prevent enemies from getting to) if there isn’t a direct line of sight.

I’m not planning on making some sort of maze obstacle that requires some some AI powered pathfinding to figure out where to go, I just wish to have some simples obstacles on the side, maybe a map that has like one big turn, or a map with a gate with 1 specific point for enemies to go through to get to the other end of the map.

Thanks!
MineTurte
Scratcher
500+ posts

Seeking advanced pathfinding engine

Haydensscratch wrote:

https://scratch.mit.edu/projects/989260631/

My game is like a tower defense game but enemies can move around freely and attack towers.

I wish to make a map with obstacles, but I ran into a number of issues.

1. Towers and Enemies may try to shoot each other through obstacles.
This is less important as for now I can stick with obstacles that stop movement but don’t block sight, or make a raycaster for each enemy and tower

2. Enemies won’t be able to navigate itself to the base (the thing the player has to prevent enemies from getting to) if there isn’t a direct line of sight.

I’m not planning on making some sort of maze obstacle that requires some some AI powered pathfinding to figure out where to go, I just wish to have some simples obstacles on the side, maybe a map that has like one big turn, or a map with a gate with 1 specific point for enemies to go through to get to the other end of the map.

Thanks!
You know griffpatch? Yeah he made a pathfinding tower defense game lol. https://scratch.mit.edu/projects/15200040/

Sorry I can't help you with the pathfinding; I really don't know much about it but hope this somewhat helps a bit!

(pronouns are she/her). Advanced Alpha Game Studios Manager. Our website: https://aags2.w3spaces.com
This is JuniperActias. AKA Moth mommy. If I helped you out consider following Juni-Bug (my new account)!




If you found this secret, say uwu
Signature gradients here













Haydensscratch
Scratcher
29 posts

Seeking advanced pathfinding engine

MineTurte wrote:

Haydensscratch wrote:

https://scratch.mit.edu/projects/989260631/

My game is like a tower defense game but enemies can move around freely and attack towers.

I wish to make a map with obstacles, but I ran into a number of issues.

1. Towers and Enemies may try to shoot each other through obstacles.
This is less important as for now I can stick with obstacles that stop movement but don’t block sight, or make a raycaster for each enemy and tower

2. Enemies won’t be able to navigate itself to the base (the thing the player has to prevent enemies from getting to) if there isn’t a direct line of sight.

I’m not planning on making some sort of maze obstacle that requires some some AI powered pathfinding to figure out where to go, I just wish to have some simples obstacles on the side, maybe a map that has like one big turn, or a map with a gate with 1 specific point for enemies to go through to get to the other end of the map.

Thanks!
You know griffpatch? Yeah he made a pathfinding tower defense game lol. https://scratch.mit.edu/projects/15200040/

Sorry I can't help you with the pathfinding; I really don't know much about it but hope this somewhat helps a bit!
thx but mine is a bit more complex. the enemies go and attack the towers and the gird isn’t snap to grid or something but thx

Powered by DjangoBB