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:

I am making a Flappy Bird-type game, just that there is a worm crawling under the ground (through the dirt). Can I please get help making a starting screen, level choosing screen (I want three levels), but most importantly, for the underground pipes to move to the left instead of the character going in between them like in Flappy Bird (so that the worm has to dodge them). Anything helps.

Is it possible to make a sprite bounce on the edges of the screen, even when you have a large tilemap it’s in?

There is an old project I found by @AqeeAqee which I want to play around with, but it doesn’t convert to blocks. Here it is: https://arcade.makecode.com/82099-01373-05124-62374

Is there a reason for this? A workaround?

1 Like

It was probably made with the no blocks setting. Making a new project, importing all the correct extensions, and then copy/pasting the code might work. There will be a lot of grey blocks though, so good luck!

1 Like

Is there a way to copy/paste all the code or do I have to go through each file and paste each one?

1 Like

It should only be the main.ts file, all the rest are default Makecode files and files created by the extensions added. There are also the assets, however, which might be annoying to copy over…

1 Like

It says 31 problems :sob:

I am not smart enough for this

1 Like

It’s probably just some assets that don’t exist. You’ll have to copy them over individually most likely.

1 Like