Discuss Scratch

  • Discussion Forums
  • » Advanced Topics
  • » Embedding scratch projects with html without frame, but with an ability to click the green flag Either when needed or good ways to create Alternatives. [RSS Feed]
menwax1
Scratcher
4 posts

Embedding scratch projects with html without frame, but with an ability to click the green flag Either when needed or good ways to create Alternatives.

Embedding scratch projects with html without frame, but with an ability to click the green flag Either when needed or good ways to create Alternatives.
Please, help tell me.
menwax1
Scratcher
4 posts

Embedding scratch projects with html without frame, but with an ability to click the green flag Either when needed or good ways to create Alternatives.

or just ot take away scratch logos
ajskateboarder
Scratcher
1000+ posts

Embedding scratch projects with html without frame, but with an ability to click the green flag Either when needed or good ways to create Alternatives.

You can try embedding the project in TurboWarp to remove Scratch branding:
<iframe src="https://turbowarp.org/PROJECT ID/embed" width="482" height="412" allowtransparency="true" frameborder="0" scrolling="no" allowfullscreen></iframe>
If that doesn't suit your needs, you can try the TurboWarp Packager's Scaffolding API: https://github.com/TurboWarp/packager/tree/master/scaffolding-api-docs

It doesn't come with its own start (green flag) and stop (stop sign button) UI, but it's easy to implement that yourself (or, you could make the project start automatically)

Last edited by ajskateboarder (May 10, 2024 14:05:40)

menwax1
Scratcher
4 posts

Embedding scratch projects with html without frame, but with an ability to click the green flag Either when needed or good ways to create Alternatives.

Well, I'm mean to restart the game if you have had a bad run with it
menwax1
Scratcher
4 posts

Embedding scratch projects with html without frame, but with an ability to click the green flag Either when needed or good ways to create Alternatives.

ajskateboarder wrote:

You can try embedding the project in TurboWarp to remove Scratch branding:
<iframe src="https://turbowarp.org/PROJECT ID/embed" width="482" height="412" allowtransparency="true" frameborder="0" scrolling="no" allowfullscreen></iframe>
If that doesn't suit your needs, you can try the TurboWarp Packager's Scaffolding API: https://github.com/TurboWarp/packager/tree/master/scaffolding-api-docs

It doesn't come with its start (green flag) and stop (stop sign button) UI, but it's easy to implement that yourself (or, you could make the project start automatically)
It is pretty good


frodewin
Scratcher
500+ posts

Embedding scratch projects with html without frame, but with an ability to click the green flag Either when needed or good ways to create Alternatives.

What works best for me is the https://packager.turbowarp.org/ packager. It provides you with a single HTML file containing your Scratch project. You can select if you want to have the controls or not.
I usually export my projects without the controls and then put it into a window of 960x720, which is a bit upscaled from the comparably small size of the project window on the scratch site.

An alternative to showing the controls would be to implement your project in a way so that you have a message initializing all objects. So, wherever you would have a “When green flag clicked” there would be a “When I receive message ”Initialize“ except for one ”When green flag clicked, send message Initialize“ in on object, probably the stage. You can then trigger a restart by ” send message Initialize" from within the project. But you have to take care to do all the cleanup (e.g. deleting clones) that is normally taken care of by the Green Flag-induced project start.



You can also find my best projects here or stop at my profile and say hi!
  • Discussion Forums
  • » Advanced Topics
  • » Embedding scratch projects with html without frame, but with an ability to click the green flag Either when needed or good ways to create Alternatives. [RSS Feed]

Powered by DjangoBB