Skip to content

Embedding

Thomas Weber edited this page Nov 6, 2020 · 52 revisions

Embedding TurboWarp is very similar to how you embed Scratch 3.

Here's the code to do it:

<iframe src="https://turbowarp.org/embed.html#414716080" width="499" height="416" allowtransparency="true" frameborder="0" scrolling="no" allowfullscreen></iframe>

Replace 414716080 with the ID of your project. Change width and height to match your needs, the player will automatically resize to fit.

Note that the project ID is included with a # followed by the project ID instead of being part of the path. This must be the last part of the URL.

URL parameters

All standard URL Parameters are still available. They must be put after embed.html and before the #<PROJECT_ID>, for example: https://turbowarp.org/embed.html?fps=60#15832807

Autoplay

Embeds also support the autoplay parameter, which will automatically hit the green flag when the project is loaded. For example: https://turbowarp.org/embed.html?autoplay#15832807

Note that audio may not work until the user interacts with the project (for example, clicking). This is a restriction imposed by browsers, there is nothing TurboWarp can do to work around this.

Clone this wiki locally