Hello there,
I was trying to learn pico-8 and I decided to create a silly game, it was working and I had some bugs but at least I was able to run the file, now I can only code, but nothing happens when I hit ctrl+R anymore, it just goes to Pico-8 boot page. Even if I load the game and type RUN as a command, nothing!
I downloaded the latest Pico-8 software btw, I even reinstalled it again.
Do you guys know what happened? Any help would be greatly appreciated.



Hello, and welcome!
It looks like you've got an infinite loop/runaway algorithm in your code. The tell here is to let the game sit for about 10 seconds; if you see a nine-colored-squares working icon in the upper-left of your screen, that means that PICO-8 is running as expected, but that you've been stuck in the same frame for several seconds.
Dig through your code and look for things like while
loops that don't meet their condition or deeply nested for
loops. the printh()
function can be extremely useful here–you can use printh()
to write output to a file, which will let you see how your code is executing (and where you might be encountering this holdup.)



Digging a bit deeper, I strongly suspect that the until is_far_enough(new_x,shrooms,min_space)
loop in add_m()
is the culprit here–you may be trying to place more mushrooms than you have space for, and is_far_enough()
will just keep returning false
...



@magic_chopstick hey, thank you so much, it took me a while to get it to work as I'm super new to this (just started a few days ago, haha), but you were right, it was the until is_far_enough()
thank you again
[Please log in to post a comment]