We seem to be getting a lot of spam posts from people new to the forums trying out the Scratchblock feature. Maybe if we had a dedicated place for playing around with them, we could cut down on that some.
So here it is - try out your script displaying skills here!
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.
Last edited by Paddle2See (2012-03-25 08:54:37)
Offline
A play area. :DDD
I've been meaning to test some more....
When Green Flag clicked:D
Last edited by CheeseMunchy (2012-02-21 14:35:29)
Offline
< <(variable1) > [5]> or <(variable1) = [5]> >
huh, this didn't work earlier...came up with some some weird text on a block.orvariable1>5variable1=5
Last edited by Smozzick (2012-02-21 14:25:35)
Offline
There is already a place for this. I'll find the link.
EDIT: oops, paddle made this.
Last edited by samtwheels (2012-02-21 16:21:28)
Offline
whenclicked
foreversayoops!saysorry paddle
Last edited by samtwheels (2012-02-21 16:22:46)
Offline
samtwheels wrote:
There is already a place for this. I'll find the link.
EDIT: oops, paddle made this.
Actually, you're right about there being another place for this.
This page is officially advertised in the Announcements thread by JSO, and doesn't actually spam up the forums in any way!
Offline
when I receiveThread has been posted ▼sayYay, a play area :DDDDDDDDDDDDDDD
Offline
samtwheels wrote:
There is already a place for this. I'll find the link.
EDIT: oops, paddle made this.
There is? I know about JSO's plugin lab:
http://joren.tk/blocks/pluginlab.htm
but it seems to be a bit slow to respond and a lot of people seem to be missing it. I thought I'd try this approach and see how it worked out
Offline
You can get a relatively good approximation by writing the project summary (shift-click File).
whenclicked
point in direction 90set "PlayerX" to "0"set "PlayerY" to "0"set "LevelNumber" to "1"set "Dir" to "0"set "Xvel" to "0"set "Yvel" to "0"forevercleargo to x: 0 y: 0switch to costume(LevelNumber) + 1stampswitch to costume "Marble"if(Dir) = "0"elsego to x:(PlayerX) * 30y:(PlayerY) * 30elseif(Dir) = "1"elsego to x:(PlayerY) * 30y:(PlayerX) * -30elseif(Dir) = "2"elsego to x:(PlayerX) * -30y:(PlayerY) * -30elsego to x:(PlayerY) * -30y:(PlayerX) * 30stampifkey "right arrow" pressed?switch to costume(LevelNumber) + 1go to x: 0 y: 0clearset "Dir" to((Dir) + 1) mod 4set "PlayerX" toroundPlayerXset "PlayerY" toroundPlayerYrepeat 10turn 9 degreesifkey "left arrow" pressed?switch to costume(LevelNumber) + 1go to x: 0 y: 0clearset "Dir" to((Dir) - 1) mod 4set "PlayerX" toroundPlayerXset "PlayerY" toroundPlayerYrepeat 10turn -9 degreesif((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.1if((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.1if((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.1if((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
Offline
CheeseMunchy wrote:
TestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesv
Lololololololololololololololololololololololololololololololololololololololololololololololololol
Offline
RedRocker227 wrote:
CheeseMunchy wrote:
TestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesvLololololololololololololololololololololololololololololololololololololololololololololololololol
whenclicked
sayall aboard quote train!play soundchoo-choo:P
Offline
Hardmath123 wrote:
You can get a relatively good approximation by writing the project summary (shift-click File).
Good point! I didn't know that. This tip really helps if you don't want to type everything out word for word. You just have to fix some syntax problems. Here is the script for the "ball" sprite in the Sample Project "5 MarbleRacer".
This is what it looks like when I first copy and paste the script.
whenclicked
foreverifkey "up arrow" pressed?change "y velocity" by 0.02ifkey "down arrow" pressed?change "y velocity" by -0.02ifkey "left arrow" pressed?change "x velocity" by -0.02ifkey "right arrow" pressed?change "x velocity" by 0.02whenclicked
foreverchange x byx velocitychange y byy velocitywhenclicked
set "x velocity" to 0set "y velocity" to 0go to x: 183 y: -6whenclicked
forever iftouching color c[00CC44]?set "x velocity" to(x velocity) * 0.95set "y velocity" to(y velocity) * 0.95
This is what it looks like when I fix it:
whenclicked
foreverifkeyup arrow ▼pressed?changey velocity ▼by0.02ifkeydown arrow ▼pressed?changey velocity ▼by-0.02ifkeyleft arrow ▼pressed?changex velocity ▼by-0.02ifkeyright arrow ▼pressed?changex velocity ▼by0.02whenclicked
foreverchange x byx velocitychange y byy velocitywhenclicked
setx velocity ▼to0sety velocity ▼to0go to x:183y:-6whenclicked
forever iftouching color ?setx velocity ▼tox velocity*0.95sety velocity ▼toy velocity*0.95
The first one still get's the point across, but the second one improves upon the syntax so the script looks more accurate.
Offline
Ooohhh, these posts gave me an idea... project summary to scratchblocks parser!!
Offline
People could just click preview to test around, but this will be good for the people who didn't think about that.
Offline
RedRocker227 wrote:
CheeseMunchy wrote:
TestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesvLololololololololololololololololololololololololololololololololololololololololololololololololol
lol you can't scroll sideways
Offline
muppetds wrote:
RedRocker227 wrote:
CheeseMunchy wrote:
TestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesTestingtestpicklesvLololololololololololololololololololololololololololololololololololololololololololololololololollol you can't scroll sideways
![]()
when I receiveExtremely good point ▼play soundGrunt ▼sayY U NO TALK IN SCRATCH BLOCKS?
Offline
Hardmath123 wrote:
You can get a relatively good approximation by writing the project summary (shift-click File).
whenclicked
point in direction90setPlayerX ▼to0setPlayerY ▼to0setLevelNumber ▼to1setDir ▼to0setXvel ▼to0setYvel ▼to0forevercleargo to x:0y:0switch to costumeLevelNumber+1stampswitch to costumeMarble ▼ifDir=0go to x:y:PlayerX*30PlayerY*30elseifDir=1go to x:y:PlayerY*30PlayerX*-30elseifDir=2go to x:y:PlayerX*-30PlayerY*-30elsego to x:y:PlayerY*-30PlayerX*30stampifkeyright arrow ▼pressed?switch to costumeLevelNumber+1go to x:0y:0clearsetDir ▼tomodDir+14setPlayerX ▼toroundPlayerXsetPlayerY ▼toroundPlayerYrepeat10turn
9degreesifkeyleft arrow ▼pressed?switch to costumeLevelNumber+1go to x:0y:0clearsetDir ▼tomodDir-14setPlayerX ▼toroundPlayerXsetPlayerY ▼toroundPlayerYrepeat10turn
-9degreesifandDir=00=letterof++round+PlayerX04*-round+PlayerY+0.5-13-7itemLevelNumberofLevelData ▼changePlayerY ▼by-0.1ifandDir=10=letterof++round+PlayerX-0.514*-round+PlayerY+0.503-7itemLevelNumberofLevelData ▼changePlayerX ▼by0.1ifandDir=20=letterof++round+PlayerX04*-round+PlayerY-0.513-7itemLevelNumberofLevelData ▼changePlayerY ▼by0.1ifandDir=30=letterof++round+(PlayerX)+0.5-14*-round+PlayerY-0.503-7itemLevelNumberofLevelData ▼changePlayerX ▼by-0.1
Fixed.
Last edited by mitchboy (2012-02-23 17:01:18)
Offline
when i receivelunch Time!SetSize of pickle ▼to100Openoven ▼Grabpickle ▼pull upchair ▼wait3secsrepeat untilSize of pickle=0Chew ▼for3secsChangeSize of pickle ▼by-1wait1secssayew this is nastyfor2secs
Last edited by CheeseMunchy (2012-02-23 17:00:32)
Offline
LS97 wrote:
Ooohhh, these posts gave me an idea... project summary to scratchblocks parser!!
![]()
Taht's why this used to be in Advanced Topics—that was my goal.
Offline
Hardmath123 wrote:
LS97 wrote:
Ooohhh, these posts gave me an idea... project summary to scratchblocks parser!!
![]()
Taht's why this used to be in Advanced Topics—that was my goal.
![]()
And what stopped you from achieving it?
Offline
Let me test... I might find a bug.
Test 1 No bugs in main subject. +0
[/b][/u]bwhenclicked
saylolforusecs
[/b][/i]whenclicked
saybforisecs
Test 3 No bugs! Achievement! No BBcode mess! (+2)testingsayhuh
Test 4 No bugs! +1sayhehe[b] test [/b]
sayMESS!!!!
[/b]say[b]for[haha]secs
go totest ▼set x tovarset x tohaha/b
for (haha) secswhenclicked
say
go totest twice ▼set x tovariableset x tohaha twice
foreversaylength offorbugs ▼2secswhich is 2...setCurrent Rating ▼to+10-length ofbugs ▼length ofachievements ▼sayCurrent Ratingwhich is 12 out of 10
Last edited by rdococ (2012-02-24 15:09:35)
Offline
CheeseMunchy wrote:
when i receivelunch Time! ▼SetSize of pickle ▼to100Openoven ▼Grabpickle ▼pull upchair ▼wait3secsrepeat untilSize of pickle=0Chew ▼for3secsChangeSize of pickle ▼by-1wait1secssayew this is nastyfor2secsbroadcastlunch eaten ▼
when i receivelunch eaten ▼sayLOLOLOLOLOLOLOLfora lotsecs
Offline