Whenever I click the green flag in the top-right corner, key presses are no longer registered. This does not apply to broadcasting the green flag
What have you tried that didn't work?
Checking if you pressed a reset key (which the game has) and if you didn’t then it will broadcast the green flag, waiting 1 frame before checking for any inputs, having the inputs be under a when I receive that is broadcasted when the green flag clicked, and probably something else i’m forgetting
thank you. I find it a little odd that you are forced to click the project window every time coming from Scratch/Turbowarp but at least I know it’s not something I’m doing wrong.
That only happens when you are running a project on the community site itself, not the editor. I was also bit confused when I moved here from Scratch..
True, but pressing the green flag should still focus the actual project player, so keyboard events should work immediately. If you click out, yeah, stop capturing keyboard events.
Not really. Control elements full screen, green flag, stop, pause are a separate part of the page (div.controlbar) not as usually - painted by the Snap on the world canvas.
BTW: Project at the community site start after the first click, so it's almost always work as expected.