How do I not use stuff before created

I have so many problems in my code because I apparently am not making them exist before using them. I tried to fix this by making the code wait until I press a button that would spawn in the sprite but it still didn’t work and I don’t know how to fix it.

1 Like

Can I see an example of your code? Or a screenshot would do as well. After that I can help take a better look.

1 Like

Hi, @ICantCode, welcome to the community, we need your project link to see what’s wrong. You can follow these simple steps to share your project if you didn’t know already.
Screenshot 2026-02-05 11.36.31


here ya go https://arcade.makecode.com/S70282-87208-15109-40643