If i use a puase until block in my game (block editor) and switch to python i get a error on the pause until:
this is really anoying if i want to remove an extension.
If i use a puase until block in my game (block editor) and switch to python i get a error on the pause until:
this is really anoying if i want to remove an extension.
This was really strange, @Aidan_TDev, and probably a bug for the @MakeCode team and/or you could post as an issue here: https://github.com/microsoft/pxt-arcade/issues
Attempting to reproduce, I get working code in blocks and when translating back and forth between blocks and JavaScript:
But when trying to convert to Python, I get the same code as you with the error and pass statement instead of my condition:
If I on the other hand start out in Python and call the pause_until() function, I get a little different result with a return False instead of the pass, corresponding to the blocks default False if no condition, but not as intuitive as both blocks and JavaScript as where to put the condition(al function):
I finally managed to discover where to put this condition i Python to get the code to work as intended:
This converts correctly back to blocks, but not back to Pyton again, as you can try out here:
In the meantime, maybe you could switch to JavaScript instead of Python to remove an extension?
Filed by @Aidan_TDev: