jwunderl / arcade-tilemap-a-star

a star implementation for tilemaps in pxt-arcade ---beta
https://jwunderl.github.io/arcade-tilemap-a-star/
MIT License
6 stars 6 forks source link

stop sprite when user gives invalid path #16

Closed jwunderl closed 3 years ago

jwunderl commented 3 years ago

When the user is gives an invalid path, we should stop following any path the sprite currently is following (current behavior), and stop the sprites current velocity (this change) -- it feels very broken when they're on the last bit of a path and you stop their path right now, as they will continue with their current momentum and still run into the target