extensions
extensions copied to clipboard
Make "Open project from URL" block press green flag once loaded
This is hyper-specific and if it is too specific please just close, however
I created this system where we you have one packaged scratch project that can load in other scratch projects. I did this when I was figuring out how websites work on github and it was the first way I figured it out (and retrospectively the most difficult way I could probably do it.)
Essentially, you have a sprite with a script who's soul goal is to load another SB3 based on whatever parameter you give it.
This has the benefit of
- Taking ~2.2 MB less space of storage/"Web Page"
- Allowing me to easily display my source code
- Easier than packaging the project and renaming it index and creating a new folder for every (sub page?)
- Not having to put a turbowarp loading screen in between "Web pages," as customizing is entirely outside of my programming knowledge other than changing the background picture essentially
The main issue is that once the new SB3 is loaded, it doesn't start. I know that there are a few blocks that can actually run without pressing the flag, so I create this
I save it as a sprite file put it in any projects that need to automatically start once loaded. It works, but it has a few issues.
- Cannot stop the project, so the editor always highlights the flag as if it's running and it seriously messes with my OCD
- Is mildly annoying to do, but slightly better than packaging each project individually
- To stop it from automatically running while editing I have to pause rather than stop
- I have to reset it every time the green flag is clicked manually I know this is likely impossible; the block is completely missing by the time the next project loads, but it feels like an intuitive behavior. I already have a solution for it, but I figured I might as well make my case for changing it.