jdoleary / Spellmasons

https://store.steampowered.com/app/1618380/Spellmasons/
Other
4 stars 1 forks source link

Moving while pathfinding #100

Open SoulMuncher opened 9 months ago

SoulMuncher commented 9 months ago

It would be nice if moving while holding f (or bound pathfinding key) would move you along the path, instead of towards your cursor.

jdoleary commented 9 months ago

It already works this way. Is that not your experience? moving

SoulMuncher commented 9 months ago

Sometimes it doesn't do that. I think it may have to do with the path moving away from your cursor, due to being in a sort've u-shape area or crevice. If your end goal is to move down to x point on the map, but you have to go up and left first, your character will just run down into the wall towards x point.

I can try to repro and send an example.

SoulMuncher commented 9 months ago

Just did a quick test. Looks like it usually(?) works with liquid but gets bad near walls.

https://github.com/jdoleary/Spellmasons/assets/68413161/e1b046eb-fd2c-42f7-86af-aa5e85bcac26

jdoleary commented 9 months ago

Interesting, I agree that should be fixed but I'll flag it as low prio

SoulMuncher commented 9 months ago

Bumping this, because I've noticed it affecting enemy ai too.

At long distances, enemies frequently get stuck on walls by attempting to run straight through them