Discuss Scratch

TheCreatorOfUnTV
Scratcher
1000+ posts

Official [scratchblocks] Testing Topic 9

run ({} @addInput :: grey ring) @addInput :: control
launch ({} @addInput :: grey ring) @addInput :: control
(call ({} @addInput :: grey ring) @addInput :: control)
report [] :: control cap
stop block :: control cap
debug :: control
(debug [] :: control)
the script @addInput{

} :: operators cap
(the () block :: operators)
(list [] @delInput @addInput :: list)
script variables ((a) :: grey) @addInput :: grey
<<true( :: #AAAAAA) :: #00CC00> :: operators>
<<( :: #AAAAAA)false :: #CC0000> :: operators>
(unicode of [a] :: operators)
(unicode (65) as letter :: operators)
<is [5] a [number v]? :: operators>

Last edited by TheCreatorOfUnTV (Aug. 28, 2024 23:24:12)

that_game_coder_guy
Scratcher
8 posts

Official [scratchblocks] Testing Topic 9

when this sprite clicked
ask [number] and wait
set [answer 2 v] to (answer)
set [num v] to [1]
repeat (length of (answer 2))
move (letter (num) of [answer 2]) steps
ask [turn how much?] and wait
turn cw (answer) degrees
end
AZEEM_AZFAR
Scratcher
65 posts

Official [scratchblocks] Testing Topic 9

const cacheName = 'v1';
const cacheAssets = [
'index.html',
'styles.css',
'app.js'
];

self.addEventListener('install', e => {
e.waitUntil(
caches.open(cacheName)
.then(cache => {
return cache.addAll(cacheAssets);
})
);
});

self.addEventListener('fetch', e => {
e.respondWith(
fetch(e.request)
.then(res => {
const resClone = res.clone();
caches.open(cacheName)
.then(cache => {
cache.put(e.request, resClone);
});
return res;
})
.catch(() => caches.match(e.request))
);
});
thebruce10
Scratcher
19 posts

Official [scratchblocks] Testing Topic 9

AZEEM_AZFAR wrote:

const cacheName = 'v1';
const cacheAssets = [
'index.html',
'styles.css',
'app.js'
];

self.addEventListener('install', e => {
e.waitUntil(
caches.open(cacheName)
.then(cache => {
return cache.addAll(cacheAssets);
})
);
});

self.addEventListener('fetch', e => {
e.respondWith(
fetch(e.request)
.then(res => {
const resClone = res.clone();
caches.open(cacheName)
.then(cache => {
cache.put(e.request, resClone);
});
return res;
})
.catch(() => caches.match(e.request))
);
});


(ooh bro wud is dis)

Last edited by thebruce10 (Aug. 28, 2024 07:28:57)

96498cb
Scratcher
100+ posts

Official [scratchblocks] Testing Topic 9

 why does [paper mario and the origami king v] give off the [vibe v] <of just being in a [hotel] :: #458b90>? :: #9e6c1f

Last edited by 96498cb (Aug. 28, 2024 14:25:51)

17Domin0
Scratcher
100+ posts

Official [scratchblocks] Testing Topic 9

vdiaz041 wrote:

17Domin0 wrote:

vdiaz041 wrote:

Add blocks to the chain. I'll go first:
when green flag clicked::events hat // vdiaz041
start @greenFlag::events // 17Domin0
move (21) steps::motion //vdiaz041/this is my computer
go to [computer]
Press “Quote” to add blocks to the chain.
17Domin0
Scratcher
100+ posts

Official [scratchblocks] Testing Topic 9

96498cb wrote:

 why does [paper mario and the origami king v] give off the [vibe v] <of just being in a [hotel] :: #458b90>? :: #9e6c1f hat
Because of the floor::#9e6c1f
champion_ofcloud-var
Scratcher
500+ posts

Official [scratchblocks] Testing Topic 9

17Domin0 wrote:

96498cb wrote:

 why does [paper mario and the origami king v] give off the [vibe v] <of just being in a [hotel] :: #458b90>? :: #9e6c1f hat
Because of the floor::#9e6c1f
hotel paper mario
17Domin0
Scratcher
100+ posts

Official [scratchblocks] Testing Topic 9

AZEEM_AZFAR wrote:

when green flag clicked
forever
const cacheName = 'v1';
const cacheAssets = [
'index.html',
'styles.css',
'app.js'
];
self.addEventListener('install', e => {
e.waitUntil(
caches.open(cacheName)
.then(cache => {
return cache.addAll(cacheAssets);
})
);
});
self.addEventListener('fetch', e => {
e.respondWith(
fetch(e.request)
.then(res => {
const resClone = res.clone();
caches.open(cacheName)
.then(cache => {
cache.put(e.request, resClone);
});
return res;
})
.catch(() => caches.match(e.request))
);
});
I am not a fast project creator.
end

Last edited by 17Domin0 (Aug. 28, 2024 15:50:32)

17Domin0
Scratcher
100+ posts

Official [scratchblocks] Testing Topic 9

champion_ofcloud-var wrote:

17Domin0 wrote:

96498cb wrote:

 why does [paper mario and the origami king v] give off the [vibe v] <of just being in a [hotel] :: #458b90>? :: #9e6c1f hat
Because of the floor::#9e6c1f
hotel paper mario
DOORS hotel paper mario
17Domin0
Scratcher
100+ posts

Official [scratchblocks] Testing Topic 9

TheCreatorOfUnTV wrote:

run ({} :: grey ring) @addInput :: control
launch ({} :: grey ring) @addInput :: control
(call ({} :: grey ring) @addInput :: control)
report [] :: control cap
stop block :: control cap
debug :: control
(debug [] :: control)
the script @addInput{

} :: operators cap
(the {reset} block :: operators)
(list [] @delInput @addInput :: list)
script variables ((a) :: grey) @addInput :: grey
<<true( :: #AAAAAA) :: #00CC00> :: operators>
<<( :: #AAAAAA)false :: #CC0000> :: operators>
(unicode of [a] :: operators)
(unicode (65) as letter :: operators)
<is [5] a [number v]? :: operators>

Last edited by 17Domin0 (Aug. 28, 2024 15:53:15)

1080GBA
Scratcher
500+ posts

Official [scratchblocks] Testing Topic 9

if <> then () else ()::control
why this no exist
bleveru
Scratcher
19 posts

Official [scratchblocks] Testing Topic 9

when rec flag clicked
play sound [ sound] until done
vdiaz041
Scratcher
100+ posts

Official [scratchblocks] Testing Topic 9

green flag 

bleveru wrote:

when rec green flag clicked::events hat
play sound [sound v] until done
brillianBee19
Scratcher
15 posts

Official [scratchblocks] Testing Topic 9

I know only I everyone does this, but I have to do it:

when [I am active? v] or [when I am making new friends? v]::events hat cat
repeat (until [I get banned v] or if [I quit Scratch v]::variables)
eat::sensing
code::makeymakey
sleep::operators
hang out with [friends and forum people v]::motion
brillianBee19
Scratcher
15 posts

Official [scratchblocks] Testing Topic 9

Hello

when this sprite clicked
pen down

don't ask why bruh

Last edited by brillianBee19 (Aug. 28, 2024 22:21:58)

brillianBee19
Scratcher
15 posts

Official [scratchblocks] Testing Topic 9

bleveru wrote:

when rec flag clicked
play sound [ sound] until done


add ::hat to the beginning and add v to the end of the dropdown
kouhei-1
Scratcher
500+ posts

Official [scratchblocks] Testing Topic 9

when green flag clicked
kouhei-1
Scratcher
500+ posts

Official [scratchblocks] Testing Topic 9

when @greenFlag clicked
set [darkmode? v] to [0]
set [mode v] to [1]
set size to ((1) / (0)) %
pen up
erase all
set pen color to [#ff0000]
set pen size to (2)
set [x軸の回旋 v] to [0]
set [y軸の回旋 v] to [0]
forever
描画::custom
if <key [up arrow v] pressed?> then
change [y_ v] by (2)
end
if <key [down arrow v] pressed?> then
change [y_ v] by (-2)
end
if <key [right arrow v] pressed?> then
change [x_ v] by (2)
end
if <key [left arrow v] pressed?> then
change [x_ v] by (-2)
end
if <key [1 v] pressed?> then
set [mode v] to [1]
end
if <key [2 v] pressed?> then
set [mode v] to [2]
end
if <key [3 v] pressed?> then
set [mode v] to [4]
end
if <key [space v] pressed?> then
set [darkmode? v] to (((darkmode?) * (-1)) + (1))
wait until <not <key [space v] pressed?>>
end
if <mouse down?> then
set [x軸の回旋 v] to ((mouse x) / (2))
set [y軸の回旋 v] to ((mouse y) / ((6) / (3)))
end
end

define (北緯) (東経) (深さ) (マグニチュード)
set pen [transparency v] to ((100) - (マグニチュード::custom))
set pen [color v] to ((深さ::custom) / (7))
set [return1 v] to (((((東経::custom) - (135)) * (14)) * ([cos v] of (x軸の回旋)::operators)) + (([sin v] of (x軸の回旋)::operators) * ((深さ::custom) * (-.3))))
set [return2 v] to (((((北緯::custom) - (35)) * (14)) * ([cos v] of (y軸の回旋)::operators)) + (([sin v] of (y軸の回旋)::operators) * ((深さ::custom) * (-.3))))

define 描画
erase all
if <(darkmode?) = [1]> then
set pen color to [#000000]
set pen size to (10000)
pen down
pen up
end
set pen [transparency v] to (0)
set pen color to [#ff0000]
set pen size to (2)
set [カウンター1 v] to (item (mode) of [mode_start v])
repeat (item (mode) of [mode_repeat v])
change [カウンター1 v] by (1)
(item (カウンター1) of [北緯 v]) (item (カウンター1) of [東経 v]) (item (カウンター1) of [深さ v]) ((100) - (item (カウンター1) of [マグニチュード v]))::custom
go to x: (return1) y: (return2)
pen down
pen up
end
set [カウンター1 v] to [0]
set pen size to (1)
set pen [transparency v] to (80)
repeat (length of [日本東経 v]::data)
change [カウンター1 v] by (1)
(item (カウンター1) of [日本北緯 v]) (item (カウンター1) of [日本東経 v]) [0] [100]::custom
go to x: (return1) y: (return2)
if <(darkmode?) = [0]> then
set pen color to [#000000]
else
set pen color to [#ffffff]
end
pen down
pen up
end

Last edited by kouhei-1 (Aug. 29, 2024 02:21:31)

thebruce10
Scratcher
19 posts

Official [scratchblocks] Testing Topic 9

17Domin0 wrote:

vdiaz041 wrote:

17Domin0 wrote:

vdiaz041 wrote:

Add blocks to the chain. I'll go first:
when green flag clicked::events hat // vdiaz041
start @greenFlag::events // 17Domin0
move (21) steps::motion //vdiaz041/this is my computer
forever //thebruce10
yeet (my computer)::motion //thebruce10
pick (my computer) up::motion //thebruce10
end //thebruce10
go to [computer]
Press “Quote” to add blocks to the chain.

Powered by DjangoBB