Help and Questions

nope only leaders

Hi, I’m making a game about stickmen shooting each other, and I made 2 multiplayer versions but I’m trying to make a singleplayer version. I’m using the tilemap a* extension but sometimes the bot just stops and I don’t know why. (I added corners to see the hitbox of the sprite, still confused) A to shoot, B to shield.

1 Like

so whenever i use this line of code it errors. can someone explain what is happening here

1 Like

Hi everyone — I’ve been diving deep into MakeCode Arcade’s source because I want to learn how to build real engine systems (not just make games). I’m trying to understand how the team organized large files (200–500+ lines) like sprite.ts, controller.ts, and camera.ts and how the pieces connect inside the frame loop.

I’m not asking for shortcuts. I’ve already read the source files and tried re-implementing pieces myself (example below). I’m posting here in the Help section because I’d really appreciate pointers from anyone experienced with the engine — especially Richard, Joey, or other core contributors — on design patterns, structure, and practical tips for building maintainable engine code. See the rest of this explain in Trying to Learn How Richard Builds Engine-Level Code like controller.ts - Arcade / Help - Microsoft MakeCode

I don’t think that anyone can fix it just off that, try to provide the whole link and I will have a look… What is the error saying…?

1 Like

never mind it was just breaking for no reason

1 Like

i need help i tried making a game over with my own life system cause i don’t like the built in sprites but when it reaches 0 it errors out https://arcade.makecode.com/S54417-06884-67347-37321

Here’s the game by the way.

So I’ve been having this issue with my game where I spawn two sprites under the same name and kind, and the same status bar. The problem occurs when i try to kil them. The first sprite spawned is killed no matter which one i attack, and the second is completely invincible. I think the problem shows itself, but I’ve tried different enemy names, bar names, everything. And me brain hurts so plz help.

1 Like

I’ve gotta set this topic to ā€œwatchingā€ apparently. Sorry this took so long, if you even ever see this. People don’t really use this topic anymore, they usually make their own help topics, which is why no one responded for so long. Anyways…

The ā€œStatusBar2ā€ variable only holds the most recent status bar that was created. To get the one you want, you’ll need to address the bar that’s attached to the sprite you are hitting, using the ā€œstatus bar attached to (sprite)ā€ block, like this: