im trying to make it so a sprite gets bigger in size as it goes and im trying to use a while not loop but it just freezes my game before anything happens
WHAT did i do wrong
im trying to make it so a sprite gets bigger in size as it goes and im trying to use a while not loop but it just freezes my game before anything happens
WHAT did i do wrong
Well because nothing in the loop does anything with the variable, it will repeat infinitely. Youre kinda just asking makecode to scale the sprite infinite times in a single frame. You need to set the variable to 0 somewhere in the while loop or use the break block.
If your gonna finish this demake then feel free to use sprites or code from my own:
ok i put a pause block in the loop and its working now
Because while loops run in the main loop, it will pause your other code until the current iteration is finished. (I think that’s why)
What @Soleb244 said, or you could use a pause block somewhere in the while loop to let other code run and potentially stop the while loop from outside of it.
Nevermind turns out I’m an absolute idiot
No your not! dont say that about yourself! You just wrote read it wrong, dont call yourself an idiot. its not nice.
can we delete this topic already