Help and Questions

heres a link to the project file
https://file.io/h0WxKBj5SLtO

what do i do next?

@Mr_Duck here’s your fixed project!

…And here are detailed instructions on how I fixed this project, for reference. Note that this involves using a CLI, so it might be tough to follow these if you haven’t used a terminal before. I ran these instructions on Ubuntu (on Windows via WSL), but they should also work just fine on macOS.

Full Instructions

Note that you need Node.js installed to follow these instructions.

Prerequisites, install the pxt and makecode cli tools via npm:

npm install -g pxt makecode

Now follow these steps:

  1. Extract the zip file and move the relevant .mkcd file into an empty directory
    unzip makecode-arcade-project-download.zip
    mkdir temp-directory
    mv arcade-2024-08-13-Backrooms-2D.mkcd temp-directory/
    cd temp-directory
    
  2. Initialize the pxt CLI in that directory:
    pxt target arcade
    
  3. Use the pxt cli to extract the project files:
    pxt extract arcade-2024-08-13-Backrooms-2D.mkcd
    
  4. cd into the extracted project’s directory:
    cd Backrooms-2D/
    
  5. Open pxt.json in the text editor of your choice and make these two edits:
    • Delete the entry for the dependency in the dependencies object. Make sure you don’t leave any trailing commas behind!
    • Change preferredEditor from ā€œblocksprjā€ to ā€œtsprjā€
  6. Save the file
  7. Use the MakeCode CLI to create a share link for the project:
    makecode share
    
  8. This will print out a share link. Open that link in the browser and select ā€œEdit Projectā€
  9. The project will open in the TypeScript editor. You’ll now need to fix any errors that were caused by removing the extension. In this case, there was one call to stuff.SwitchSprites(mySprite2, myEntity) that I had to delete
  10. Switch to blocks and make sure everything looks good!
1 Like

Thanks so much @richard! for a sec there I thot that I would lose my project
(it took me 1 years and i’m not done)

@richard can you make a wall that isn’t affected by you’re shadow casting extension

@Mr_Duck no, not currently.

ok i don’t mind

A post was merged into an existing topic: Help needed please my game wont work

Hey @richard !

I am making a game (with the help of free templates from others) and decided to make a title screen, so I found one I liked and tried recreating in but it didn’t work.

The title screen is suppose to say the game name then a text saying ā€œclick B to startā€ but none of that shows but instead its just a black screen!

Please help me with the game link right here: https://arcade.makecode.com/S60799-63049-42388-52853

uhm I’m trying to make a one piece based game and the enemy’s wont work…
here’s the game linkhttps://arcade.makecode.com/S23398-95492-70064-81033 :disappointed_relieved:

Also, when the player reaches zero health, the game is suppose to end, but it doesn’t, btw all the broken stuff is at the top right separated from the other code in blocks.

@Cdahr1 this is because you have the raycasting extension in your project. when you add that to the project, it changes how all sprites are rendered. @AqeeAqee might have tips on what you can do to make a title screen like this

Hi @Cdahr1
When start to design this plug, I assumed there’s a map already. But not, in some a little more complex cases, like yours.
So the easiest way of workaround is set a blank tilemap at first, before you set the real map.

image

And I guess you don’t want your text sprite shown as a 3d character, set its ā€œrelative to cameraā€ to ON.

image

Ok, thank you @AqeeAqee

I will try it then get back to you soon!

Thank you very much @AqeeAqee

my game it fixed!

1 Like

Hey @richard

there is a glitch I am currently facing. When I try to change the title map, its sticks to my mouse and doesn’t come off unless I refresh the page.


(I’m not holding my mouse button)

Thank you!

@Cdahr1 this is definitely a makecode bug! can you share a link to your project? also if you can open the dev tools and check for errors in the console i would appreciate it

sure @richard ! the link is here: https://makecode.com/_f2s5H7EAiU1F

Also, I dont know how to check dev tools, sorry!

Thanks!

can you change the z index of an image? (so you don’t go under the image)