Discuss Scratch

Key_Matbei
Scratcher
13 posts

Official [scratchblocks] Testing Topic 9

when green flag clicked
go to [Walmart v]
get [Roblox gift card v]::motion
go [ home v]::motion
broadcast [redeem v]
stop [this script v]
when I receive [redeem v]
redeem[roblox gift card v]::motion

Last edited by Key_Matbei (Aug. 29, 2024 06:00:37)

kouhei-1
Scratcher
1000+ posts

Official [scratchblocks] Testing Topic 9

when {when green flag clicked} flag clicked
17Domin0
Scratcher
100+ posts

Official [scratchblocks] Testing Topic 9

brillianBee19 wrote:

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

when [I am active v]::events hat
forever
code::operators

Last edited by 17Domin0 (Aug. 29, 2024 12:15:15)

17Domin0
Scratcher
100+ posts

Official [scratchblocks] Testing Topic 9

kouhei-1 wrote:

when @greenFlag clicked
set [darkmode? v] to [0]
set [mode v] to [1]
set size to ((1) / (0)) %
pen up
erase all::pen
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
code::operators
end
define (北緯) (東経) (深さ) (マグニチュード)
set pen [transparency v] to ((100) - (マグニチュード::custom))::pen
set pen [color v] to ((深さ::custom) / (7))::pen
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))))
code::operators
define 描画
erase all::pen
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)::pen
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)::pen
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
code::operators

Last edited by 17Domin0 (Aug. 29, 2024 12:22:01)

ispretty
Scratcher
7 posts

Official [scratchblocks] Testing Topic 9

j
j
A-MARIO-PLAYER
Scratcher
1000+ posts

Official [scratchblocks] Testing Topic 9

launch ((play sound (Meow v) until done :: sound stack)@addInput::grey ring) :: control

Last edited by A-MARIO-PLAYER (Aug. 29, 2024 17:16:47)

warriorcatsfreakalt
Scratcher
1000+ posts

Official [scratchblocks] Testing Topic 9

what is love :: events :: hat block
baby don't hurt me :: looks
play sound [don't hurt me v]
wait (no more :: custom) secs
end :: operators :: cap
8to16
Scratcher
1000+ posts

Official [scratchblocks] Testing Topic 9

g4177p4tch wrote:

today's your chance to be a winner and recieve 1000000 blockbit click the scratch logo for more info
when flag clicked // to let this go in testing topic
be a big winner :: events cap
this is a joke and is also a test of the quoting thing

Last edited by 8to16 (Aug. 29, 2024 18:20:20)

Rain68
Scratcher
37 posts

Official [scratchblocks] Testing Topic 9

thebruce10 wrote:

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
repeat until <(my computer) = [broken]> //thebruce10
yeet (my computer)::motion
pick (my computer) up::motion
end
go to [computer]
go to [hell] // Rain68
define hell
Bad place::motion // Rain68
Press “Quote” to add blocks to the chain.
noah07620
Scratcher
100+ posts

Official [scratchblocks] Testing Topic 9

kouhei-1 wrote:

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
???[/quote]
What
TheCreatorOfUnTV
Scratcher
1000+ posts

Official [scratchblocks] Testing Topic 9

A-MARIO-PLAYER wrote:

launch ({
play sound [Meow v] until done
}@addInput::grey ring) :: control
That's just
play sound [Meow v]
TheCreatorOfUnTV
Scratcher
1000+ posts

Official [scratchblocks] Testing Topic 9

// try defining this function!

{(get derivative of (f) at (x) :: grey)} :: control hat
set [dx v] to [0.00001]
report (((call (f) with inputs ((x) + (dx)) @delInput @addInput :: control) - (call (f) with inputs (x) @delInput @addInput :: control) :: #33CC33) / (dx)) :: control cap

when green flag clicked
say (get derivative of ({
report ([sqrt v] of (x)) :: control cap
} with inputs (x) @delInput @addInput :: #AAAAAA ring) at (2) :: grey)
say (get derivative of ({
report ([sin v] of (x)) :: control cap
} with inputs (x) @delInput @addInput :: #AAAAAA ring) at (270) :: grey)
Credit to @gilbert_given_189

Last edited by TheCreatorOfUnTV (Aug. 29, 2024 23:43:43)

vdiaz041
Scratcher
100+ posts

Official [scratchblocks] Testing Topic 9

point towards [brillianBee19 v]
kouhei-1
Scratcher
1000+ posts

Official [scratchblocks] Testing Topic 9

say [...]
...
Ollie-Young
Scratcher
500+ posts

Official [scratchblocks] Testing Topic 9

Here’s some blocks I use to make my projects:

when green flag clicked // loading the animation.
show
switch costume to [ costume1 v]
repeat (pick random (20) to (50))
Animate until (# of costumes) every (0.02) seconds
end
broadcast [ Done loading] // start the animation.

define Animate until (frame #) every (fps #) seconds
repeat until <(costume [number v] :: looks) = [frame #]> // animate
next costume
wait (fps #) secs
end

define Animate backwards until (frame #) every (fps #) seconds
repeat until <(costume [number v] :: looks) = [frame #]> // animate backwards
switch costume to ((costume [number v] :: looks) - (1)) // since there’s no previous costume just use this.
wait (fps #) secs
end

Last edited by Ollie-Young (Aug. 30, 2024 05:17:08)

AZEEM_AZFAR
Scratcher
65 posts

Official [scratchblocks] Testing Topic 9

when green flag clicked
go to x: [0] y: [0] // Starting position
set [velocity y v] to [0]
forever
if <key [right arrow v] pressed?> then
change x by [5]
end
if <key [left arrow v] pressed?> then
change x by [-5]
end
if <key [space v] pressed?> and <(touching [Platform v])> then
set [velocity y v] to [10]
end
change y by (velocity y)
change [velocity y v] by [-1] // Gravity
if <touching [Platform v]> then
set [velocity y v] to [0]
end
end
griffnugget
Scratcher
11 posts

Official [scratchblocks] Testing Topic 9

define (    3d)
Saifan2014
Scratcher
100+ posts

Official [scratchblocks] Testing Topic 9

define make 3D X (X) Y (Y) direction (direction) repeat(repeat)
hide
go to x: (Y) y: (X)
point in direction (direction)
repeat (repeat)
change [brightness v] effect by (-1)
create clone of [myself v]
change y by (-2)
end
when green flag clicked
Make 3D X (0) Y (0) direction (90) repeat (30)

3d sprite

Last edited by Saifan2014 (Aug. 30, 2024 08:50:22)

griffnugget
Scratcher
11 posts

Official [scratchblocks] Testing Topic 9

define 3d
when green flag clicked
say [hey you there what are you doing] for (2) secs
say [oh you say that your here to help some one sorry no entry guards only] for (2) secs
when green flag clicked
if <> then
<key [a v ] pressed?>
broadcast [next word ]
when I receive [ next word v]
say [I'm calling the cops WASTED] for (2) secs
progamer1271
Scratcher
1 post

Official [scratchblocks] Testing Topic 9

when green flag clicked
say [hello what is this forum] for (2) secs

Powered by DjangoBB