Im trying to make a 2 player game, but i made some creatures and they cant attack the closest player… Can someone tell me how to make them attack the closest player please?
2 Likes
Try
jwunderl/arcade-sprite-util
1 Like
RedSprite gave you an extension. If you put that text into the extensions search bar, you’ll see the Sprite Utils extension. I think this extension has blocks for finding the closest Sprite and stuff, so that’s why it was recommended you take a look. If there isn’t a dedicated “closest Sprite” block, you can use the blocks that check the distance between two sprites to check which player Sprite the enemy is closest to.
2 Likes
i made a tutorial on this if you are still interested
[Tutorial] Making an Enemy Follow Multiple Sprites
1 Like