So I want to make a platformer game and have enimies with the same code in different places specifically so how do I do that here’s a link
(https://arcade.makecode.com/S58825-62355-71999-57509)
1 Like
Right now your main issue is that these two variables aren’t the same:
Then to run code for a bunch of enemies, you can change the SpriteKind of the ghost thing to “enemy” and do something like “For (value) of (array of all sprites of kind [enemy])…” and that “value” variable holds the sprite you are running code on.
I’ll try it