How do i make enemy's not walk over each other? and if i have a sword how would i defeat only the enemy's that i hit?

1e This is an very early boult of an new game of mine, multiple enemy’s are going to spawn and walk to the player, but i don’t like that the enemy’s can walk over each other. how do i fix it in this case?

2e the way i programed to have many enemy’s while using only one variable is by spawning duplicates. if i do: 'if “sword” overlaps with ‘‘enemy’’ then: destroy enemy. then only the last spawned enemy gets deleted and the one that got hit still exists. https://arcade.makecode.com/S94144-29005-01539-34548

(also if there are other tips for what i currently have it is welcome)

1 Like
  1. use @Sonicblaston’s sprite walls extension for that
  2. do this

1 Like