"Oops, we could not run this project. Please check your code for errors."

https://arcade.makecode.com/S94622-46837-25710-97038

I just running this simulator - doesn’t it works!

1 Like

I don’t know any python :sob:

the issue was that player is defined somewhere by makecode, so I renamed it to p. The on start function also shouldn’t exist (unless you call it) because it wasn’t running.

When you create a variable inside a function, it is only “local” to that function and gets deleted once the function is done running. You have to make it outside of the function or use the “global” keyword to make it a global variable.

Welcome to forums @harithrizqi !

2 Likes