I did a quick search on the forum help section and I’ve found similar issues reported by other users, but I’m not quite sure where I can start troubleshooting.
This is the link to the version I was working on - https://makecode.com/_LYkDUJJfV7q9
I think you have uncovered a bug in MakeCode. To work around it, you can remove the argument you are passing to “on game update interval”. In general, you only ever want to put a number in that block. The interval argument is only executed once so it will just take whatever the first value is.
Instead, you can use
pause() in the loops category. In other words, instead of this code:
Do something more like this:
And I’ve reported this bug in our issue tracker here: https://github.com/microsoft/pxt-arcade/issues/1879
Thanks for finding it!
Hi Richard, thanks for looking into this. I’ll make the changes you’ve recommended.
Edit: I’ve made changes to the loop and everything seems to work just fine. Many thanks again!