A more advanced way to make your enemies follow your sprite in Makecode Arcade, in the hopes of making them just a little bit scarier. Extension: jwunderl/arcade-tilemap-a-star
HI there! If you would like the enemy to stop moving when another player joins: Make a new variable called "multiplayer" Place an "if (multiplayer) is true" around your enemy following code. From the "controller" tab, get "on player 2 connected" place a "set multiplayer to true" inside that place a "set multiplayer to false" in the "on start" block You can then use the same code to turn it back on with the "on player 2 disconnected" block. Hope this helps!
감사합니다❤
helped a lot thanks!
Thanks my game is due tmr
thanks i will sub this helped me so much!
Glad we could help!
Thx
what if i need them to jump?
Is there a way to make it so the AI only works if it's single player?
HI there! If you would like the enemy to stop moving when another player joins:
Make a new variable called "multiplayer"
Place an "if (multiplayer) is true" around your enemy following code.
From the "controller" tab, get "on player 2 connected"
place a "set multiplayer to true" inside that
place a "set multiplayer to false" in the "on start" block
You can then use the same code to turn it back on with the "on player 2 disconnected" block.
Hope this helps!
@ashburtonlibrary don't worry I figured it out awhile ago but thanks for trying