I’m creating a game in MakeCode Arcade where the player gains points by touching a food sprite and loses lives by touching an enemy sprite.
After the player touches either, both the food and enemy are moved to random positions on the screen.
The problem is that sometimes they end up on top of each other, which makes it too easy to lose a life unintentionally.
I tried solving it with a while loop and overlaps_with() in Python, but MakeCode says the project can’t be converted back to blocks.
What’s the best way to solve this using only blocks?
Hereby attached a screenshot of the blocks so far: