when gf <not> clicked repeat until <not <(timer) > [10]>> go <not> to [mouse-pointer v] end think [Scripts in your posts!] <not> for (3) secs
when <> gf <> clicked repeat <> until <(timer <>) > [10] <>> go <> to [mouse-pointer v] <> end think <> [Scripts in your posts!] <> for (3) secs <>
Offline
The original script.
when gf clicked move (10) steps play sound [pop v]
Last edited by maxamillion321 (2012-09-08 11:10:23)
Offline
boomhotel wrote:
Sprite 1:
when gf clicked go to x: (-135) y: (-80) set [scroll v] to [0] say [This is my new and improved scroll demo] for (4) secs say [Version 1.2] for (2) secs set size to (50) % when gf clicked forever if <touching color [#E01B6A]?> set [scroll v] to (0) end when gf clicked forever if <key [left arrow v] pressed?> switch to costume [left v] change [scroll v] by (5) end when gf clicked forever if <not <touching color [#46E01B]?>> change y by (-5) end if <touching color [#46E01B]?> change y by (5) end end when gf clicked forever if <key [right arrow v] pressed?> switch to costume [right v] change [scroll v] by (5) //Is this comment too long? end when gf clicked forever if <touching color [#3F11F7]?> set [scroll v] to [-2205] end when gf clicked forever if <key [up arrow v] pressed?> repeat (10) change y by (10) end endGround 1:when gf clicked forever set y to (0) end when gf clicked forever set x to ((scroll) + (((480) * (0))) endGround 2:when gf clicked forever set y to (0) end when gf clicked forever set x to ((scroll) + ((480) * (1))) endGround 3:when gf clicked forever set y to (0) end when gf clicked forever set x to ((scroll) + ((480) * (2))) endGround 4:when gf clicked forever set y to (0) end when gf clicked forever set x to ((scroll) + ((480) * (3))) endGround 5:when gf clicked forever set y to (0) end when gf clicked forever set x to ((scroll) + ((480) * (4))) // Yep, my comment is too long end
Fixed
Offline
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<scratchblocks rock!>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Offline
when gf clicked broadcast [board v] when I receive [board v] change x by (10) if <touching color [#088A4B]?> say [Poker!] for (2) secs broadcast [play game v] end broadcast [board v]Anyone who knows how to play poker can extend this. The script must begin with the
when I receive [game v]block, however. It must end with a broadcast that does not match any existing ones, and it must be made by quoting the last existing in-game post. Only two Scratchers can play, and they must compete. Keep doing this until the game ends. Put the
say [_____ wins!] for (5) secs stop allscript at the end of that final script. The winner will get to add one tag to all his projects, and make a cool game! Write a post saying "Pick me!" if you want to play.
Last edited by 3sal2 (2012-09-08 21:25:25)
Offline
when gf clicked if <(lunch) = (ready)> say (BLAH BLAH BLAH!!!) end eat [lunch v] if <(my lunch) contains (a bomb)> say (My stomach feels weird...) end if <(I) hear a (bomb) in my stomach> before [bomb v] explodes if <(timer) = [0.1]> say (Tik tik tik, what the f-!) explode into 1,000,000 pieces end end say (Dang Nemotoads...)
Last edited by maxamillion321 (2012-09-08 18:14:17)
Offline
say [#123400] [#123410] [#123420] [#123430] [#123440] [#123450] [#123460] [#123470] [#123480] [#123490] [#1234A0] [#1234B0] [#1234C0] [#1234D0] [#1234E0] [#1234F0]
Last edited by Molybdenum (2012-09-08 19:57:11)
Offline
if <when <not> gf <not> clicked>
Last edited by Firedrake969 (2012-09-09 17:24:26)
Offline
if [hello world]<<when gf clicked [4555 v] [times?]>>
Offline
Paddle2See wrote:
However, please do not turn this into a spam area. Post until you are comfortable with the Scratchblock syntax and then stop. Don't make ongoing stories or conversations here.
Offline
[scratchblocks]
when gf clicked
point in direction 90
set "PlayerX" to "0"
set "PlayerY" to "0"
set "LevelNumber" to "1"
set "Dir" to "0"
set "Xvel" to "0"
set "Yvel" to "0"
forever
clear
go to x: 0 y: 0
switch to costume
(LevelNumber) + 1
stamp
switch to costume "Marble"
if
(Dir) = "0"
else
go to x:
(PlayerX) * 30
y:
(PlayerY) * 30
else
if
(Dir) = "1"
else
go to x:
(PlayerY) * 30
y:
(PlayerX) * -30
else
if
(Dir) = "2"
else
go to x:
(PlayerX) * -30
y:
(PlayerY) * -30
else
go to x:
(PlayerY) * -30
y:
(PlayerX) * 30
stamp
if
key "right arrow" pressed?
switch to costume
(LevelNumber) + 1
go to x: 0 y: 0
clear
set "Dir" to
((Dir) + 1) mod 4
set "PlayerX" to
round
PlayerX
set "PlayerY" to
round
PlayerY
repeat 10
turn 9 degrees
if
key "left arrow" pressed?
switch to costume
(LevelNumber) + 1
go to x: 0 y: 0
clear
set "Dir" to
((Dir) - 1) mod 4
set "PlayerX" to
round
PlayerX
set "PlayerY" to
round
PlayerY
repeat 10
turn -9 degrees
if
((Dir) = "0") and ("0" = (letter ((((round (PlayerX)) + 0) + 4) + ((((round ((PlayerY) + 0.5)) + -1) - 3) * -7)) of (item (LevelNumber) of "LevelData" )))
change "PlayerY" by -0.1
if
((Dir) = "1") and ("0" = (letter ((((round ((PlayerX) - 0.5)) + 1) + 4) + ((((round ((PlayerY) + 0.5)) + 0) - 3) * -7)) of (item (LevelNumber) of "LevelData" )))
change "PlayerX" by 0.1
if
((Dir) = "2") and ("0" = (letter ((((round (PlayerX)) + 0) + 4) + ((((round ((PlayerY) - 0.5)) + 1) - 3) * -7)) of (item (LevelNumber) of "LevelData" )))
change "PlayerY" by 0.1
if
((Dir) = "3") and ("0" = (letter ((((round ((PlayerX) + 0.5)) + -1) + 4) + ((((round ((PlayerY) - 0.5)) + 0) - 3) * -7)) of (item (LevelNumber) of "LevelData" )))
change "PlayerX" by -0.1
Say [Yea I tried copying his script lawl]
[scratchblocks]
Offline
JakieMcCool wrote:
when gf clicked point in direction 90 set "PlayerX" to "0" set "PlayerY" to "0" set "LevelNumber" to "1" set "Dir" to "0" set "Xvel" to "0" set "Yvel" to "0" forever clear go to x: 0 y: 0 switch to costume (LevelNumber) + 1 stamp switch to costume "Marble" if (Dir) = "0" else go to x: (PlayerX) * 30 y: (PlayerY) * 30 else if (Dir) = "1" else go to x: (PlayerY) * 30 y: (PlayerX) * -30 else if (Dir) = "2" else go to x: (PlayerX) * -30 y: (PlayerY) * -30 else go to x: (PlayerY) * -30 y: (PlayerX) * 30 stamp if key "right arrow" pressed? switch to costume (LevelNumber) + 1 go to x: 0 y: 0 clear set "Dir" to ((Dir) + 1) mod 4 set "PlayerX" to round PlayerX set "PlayerY" to round PlayerY repeat 10 turn 9 degrees if key "left arrow" pressed? switch to costume (LevelNumber) + 1 go to x: 0 y: 0 clear set "Dir" to ((Dir) - 1) mod 4 set "PlayerX" to round PlayerX set "PlayerY" to round PlayerY repeat 10 turn -9 degrees if ((Dir) = "0") and ("0" = (letter ((((round (PlayerX)) + 0) + 4) + ((((round ((PlayerY) + 0.5)) + -1) - 3) * -7)) of (item (LevelNumber) of "LevelData" ))) change "PlayerY" by -0.1 if ((Dir) = "1") and ("0" = (letter ((((round ((PlayerX) - 0.5)) + 1) + 4) + ((((round ((PlayerY) + 0.5)) + 0) - 3) * -7)) of (item (LevelNumber) of "LevelData" ))) change "PlayerX" by 0.1 if ((Dir) = "2") and ("0" = (letter ((((round (PlayerX)) + 0) + 4) + ((((round ((PlayerY) - 0.5)) + 1) - 3) * -7)) of (item (LevelNumber) of "LevelData" ))) change "PlayerY" by 0.1 if ((Dir) = "3") and ("0" = (letter ((((round ((PlayerX) + 0.5)) + -1) + 4) + ((((round ((PlayerY) - 0.5)) + 0) - 3) * -7)) of (item (LevelNumber) of "LevelData" ))) change "PlayerX" by -0.1 Say [Yea I tried copying his script lawl]
Fixed
Offline
firedrake969_test wrote:
JakieMcCool wrote:
when gf clicked point in direction [90 v] set [PlayerX v] to [0] set [PlayerY v] to [0] set [LevelNumber v] to [1] set [Dir v] to [0] set [Xvel v] to [0] set [Yvel v] to [0] forever clear go to x: [0] y: [0] switch to costume ((LevelNumber) + 1) stamp switch to costume [Marble v] if <(Dir) = [0]> else go to x: ((PlayerX) * 30) y: ((PlayerY) * 30) end if <(Dir) = [1]> else go to x: ((PlayerY) * 30) y: ((PlayerX) * -30) end if <(Dir) = [2]> else go to x: ((PlayerX) * -30) y: ((PlayerY) * -30) end go to x: ((PlayerY) * -30) y: ((PlayerX) * 30) stamp if <key [right arrow v] pressed?> switch to costume ((LevelNumber) + [1]) go to x: [0] y: [0] clear set [Dir v] to (((Dir) + 1) mod [4]) set [PlayerX v] to (round (PlayerX)) set [PlayerY v] to (round (PlayerY)) repeat [10] turn cw [9] degrees if <key [left arrow v] pressed?> switch to costume ((LevelNumber) + 1) go to x: [0] y: [0] clear set [Dir v] to (((Dir) - 1) mod [4]) set [PlayerX v] to (round [PlayerX v]) set [PlayerY v] to (round [PlayerY v]) repeat [10] turn cw [-9] degrees if <<(Dir) = [0]> and <(letter ((((round (PlayerX)) + [0]) + [4]) + (((((round (PlayerY)) + [0.5]) + [-1]) - [3]) * [-7])) of (item (LevelNumber) of [LevelData v])) = [0]>> change [PlayerY v] by [-0.1] if <<(Dir) = [1]> and <(letter (((((round (PlayerX)) - [0.5]) + [1]) + [4]) + (((((round (PlayerY)) + [0.5]) + [0]) - [3]) * [-7])) of (item (LevelNumber) of [LevelData v])) = [0]>> change [PlayerX v] by [0.1] if <<(Dir) = [2]> and <(letter ((((round (PlayerX)) + [0]) + [4]) + (((((round (PlayerY)) - [0.5]) + [1]) - [3]) * [-7])) of (item (LevelNumber) of [LevelData v])) = [0]>> change [PlayerY v] by [0.1] if <<(Dir) = [3]> and <(letter (((((round (PlayerX)) + [0.5]) + [-1]) + [4]) + (((((round (PlayerY)) - [0.5]) + [0]) - [3]) * [-7])) of (item (LevelNumber) of [LevelData v] )) = [0]>> change [PlayerX v] by [-0.1] end end end end end end end Say [Yea I tried copying his script lawl]Fixed
Fixed for real this time.
Last edited by sonicfan12p (2012-09-10 16:10:54)
Offline
3sal2 wrote:
Molybdenum wrote:
maxamillion321 wrote:
Fixed. You need to add
Code:
[/scratchblocks]to the end.
Umm, look what you did.
Fixed.
Fixed for real.
Offline
rdococ wrote:
Splodgey wrote:
CheeseMunchy wrote:
when i receive [lunch Time! v] Set [Size of pickle v] to [100] Open [oven v] Grab [pickle v] pull up [chair v] wait [3] secs repeat until <(Size of pickle) = [0]> [Chew v] for [3] secs Change [Size of pickle v] by [-1] wait [1] secs say [ew this is nasty] for [2] secs end broadcast [lunch eaten v]when i receive [lunch eaten v] say [LOLOLOLOLOLOLOL] for [a lot] secswhen I receive [next post v] say [Hahaha, so funny in't it?] for (2) secs say ([sqrt v] of (-1)) for ((5) / (0)) secs broadcast [fail v]
when I receive [fail v] set [size v] to (pick random (300) to (1000)) if <(size) > [800]> [evacuate v] house else hide from [explosion v] end wait (5) secs [enter v] house get [pop-tart v] put in [microwave v] play sound [beep whirrr zap! v] until done repeat until <(random planet) = [Mars]> repeat until <is (random planet) a [planet v]?> set [random planet v] to [some random destination v] end go to (random planet) end broadcast [fall down v]
Offline
Splodgey wrote:
zammer990 wrote:
ask [can you imagine a world with hover] [bacon v] and wait say [lalalalala] ask [can you imagine if pork had] [levitation v] and wait say [lalalalala]Flying Pigs!
when I receive [song v] if <not (loudness) [10]> if on edge, bounce end go back [Scripts in your posts!] (3) layers
Offline
when gf clicked set [ghost] effect to [-100] change [size] by [30] repeat until <(animal) = [234] change >(animal) by [30] repeat [10] times say [I love animals!!!!] for (45) secsHope this works! I've never tried it before!
Offline