Discuss Scratch
- Discussion Forums
- » Developing Scratch Extensions
- » Await?
- Supaboy1581
- Scratcher
15 posts
Await?
I'm creating a file extention. Is it possible to use await and async
when green flag clicked
Set mobile mode<True>
Set multiplayer mode<True>
Load
define When stop sign clicked
Save
- qwertyy_the_artist
- Scratcher
100+ posts
Await?
when you say “file extension”, i assume you mean “scratch extension”? file extensions are everything after the . in a file, such as mp3, wav, txt, exe, et cetera.
the await/async command is already in scratch, as the “wait until <>” block.
the await/async command is already in scratch, as the “wait until <>” block.
hi, i'm qwertyy!
i'm a self-taught artist
(i'm also a total geek, don't bring up computers around me unless you want an earful lol)
here's my favorite drawings i've done:
everything dies | get along shirt
Post among us memes for 12 hours straight.…That would result in more followers. src
- Supaboy1581
- Scratcher
15 posts
Await?
No. A scratch extention for loading files
when green flag clicked
Set mobile mode<True>
Set multiplayer mode<True>
Load
define When stop sign clicked
Save
- CST1229
- Scratcher
1000+ posts
Await?
Yes, you can simply just make your block function async and it will wait until it's complete:
async myBlock(args, util) { // example code that waits 2 seconds await new Promise(resolve => setTimeout(resolve, 2000)); }
This is a signature. It's a piece of text that appears below every post I write. Click here to learn more, including how to make your own.
RIP assets image hosting. 2013?-2023
RIP assets image hosting. 2013?-2023
- Discussion Forums
- » Developing Scratch Extensions
- » Await?