Why isn't anything in my game appearing?

I’ve been working on my game for a bit but now whenever I try to playtest it, the game never loads anything, anyone know why and how to fix this?
https://arcade.makecode.com/S24545-40560-18049-38879

Check(and optimize) your loops and pauses, especially this one:
Skjermbilde

2 Likes

It only works when I delete all of the On Game Update blocks. Maybe a bug in Makecode of with one of your extensions? Try replacing them with Forever loops with Wait(random())s in them and see if it works.

bruh.

What.

Sorry everyone, and especially to @PLAYER42, if my first answer was too short/incomplete or otherwise warranted reactions like @Mega0star01’s “bruh” and @Sarge’s “What”.

I went through the code and commented out all pause() instructions, and managed at least to get the game level and sprites showing. Then I discovered the large loop with 1e75 in E-notation iterations, which not alone(game still waits with black screen if only this loop is done with only a few iterations) contributes to what I thought might be the game waiting for a long time/hanging on something on start, but nevertheless is a large, probably unintended, number of iterations.

Then, there is also what @WoofWoof mentions, that there are a lot of extension loaded, some of them seemingly unused, which also might contribute to the game not loading.

This led me to conclude(maybe prematurely) that there might be reasons to check closer all loops and pauses, without taking the time to go through each and one of them thoroughly myself, nor confirm that these are the main/only culprits causing the game not to load.

Here is the version I looked at with all pause() calls commented out(and all extensions still loaded), which at least loads and shows the tilemap and sprites, though thus not working with the timings as they probably were intended:

This was an interesting problem and I was only trying to help, but the task of going through all this code anymore closely than I already had done at the time, I decided was too big a task and I hoped I was on the right track pointing to the loops and pauses.

The game looks nice and I hope for seeing a version here later which loads as it should.

1 Like

Thank you so much for the help!

1 Like

Haha I was not responding to your response, I was just stumped at the 1e+75 loops :joy:
(how did that get there?)

2 Likes