Pages: 1 2
Topic closed
Welcome to the 2012 and first annual Scratch Contest! The contest is to make the best script with ScratchBlocks! Anyone can enter!!!
Leaderboards
- no one yet
-no one yet
- no one yet
- no one yet
Offline
Finally a scratch block contest
when gf clicked Become [ a chocobo] Go get [Gobo] go get [Cat] Make an announcement
Offline
when gf clicked go to x: (0) y: (130) set [xv v] to [0] set [yv v] to [0] set [tempcoststorage v] to [1] set [walking v] to [no] set [can walljump? v] to [no] forever show switch to costume [sense v] set [bleh v] to [0] change y by (-1) if <key [left arrow v] pressed?> if <touching color [#FF9500]?> change [xv v] by (-1) else change [xv v] by (-0.7) end end if <key [right arrow v] pressed?> if <touching color [#FF9500]?> change [xv v] by (1) else change [xv v] by (0.7) end end set [xv v] to ((xv) * (0.9)) if <touching color [#FF9500]?> if <(xv) > [5]> set [xv v] to [5] end if <(xv) < [-5]> set [xv v] to [-5] end change x by ((xv) * (1.5)) else change x by (xv) end change y by (1) if <<touching color [#000008]?> or <<touching color [#00CECE]?> or <touching color [#FF9500]?>>> change y by (1) change [bleh v] by (1) if <<touching color [#000008]?> or <<touching color [#00CECE]?> or <touching color [#FF9500]?>>> change y by (1) change [bleh v] by (1) if <<touching color [#000008]?> or <<touching color [#00CECE]?> or <touching color [#FF9500]?>>> change y by (1) change [bleh v] by (1) if <<touching color [#000008]?> or <<touching color [#00CECE]?> or <touching color [#FF9500]?>>> change y by (1) change [bleh v] by (1) if <<touching color [#000008]?> or <<touching color [#00CECE]?> or <touching color [#FF9500]?>>> change y by (1) change [bleh v] by (1) if <<touching color [#000008]?> or <<touching color [#00CECE]?> or <touching color [#FF9500]?>>> change x by ((xv) * (-1)) set [xv v] to [0] change y by (-5) if <(can walljump?) = [yes]> if <key [up arrow v] pressed?> change x by (5) set [c n v] to [-5] if <<touching color [#000008]?> or <<touching color [#00CECE]?> or <touching color [#FF9500]?>>> set [xv v] to [-10] set [yv v] to [12] else change x by (-10) set [c n v] to [5] if <<touching color [#000008]?> or <<touching color [#00CECE]?> or <touching color [#FF9500]?>>> set [xv v] to [10] set [yv v] to [12] end end change x by (c n) else end end else set [xv v] to [0] end end end end end end set [yv v] to ((yv) * (0.9)) change y by (yv) if <touching color [#00CECE]?> change y by ((yv) * (-1)) set [yv v] to ((yv) * (-2)) else if <touching color [#000008]?> change y by ((yv) * (-1)) set [yv v] to [0] end end change y by (-4) if <<touching color [#000008]?> or <<touching color [#00CECE]?> or <touching color [#FF9500]?>>> change y by (1) if <<touching color [#000008]?> or <<touching color [#00CECE]?> or <touching color [#FF9500]?>>> change y by (1) if <<touching color [#000008]?> or <<touching color [#00CECE]?> or <touching color [#FF9500]?>>> change y by (1) if <<touching color [#000008]?> or <<touching color [#00CECE]?> or <touching color [#FF9500]?>>> change y by (1) end end end change y by (-1) if <touching color [#00CECE]?> if <key [up arrow v] pressed?> set [yv v] to [24] else set [yv v] to ((yv) * (-2)) end else set [yv v] to [0] end change y by (1) else change y by (4) end change y by (-1) if <key [up arrow v] pressed?> if <touching color [#00CECE]?> set [yv v] to [24] change y by (4) else if <<touching color [#000008]?> or <touching color [#FF9500]?>> set [yv v] to [12] change y by (4) end end end change y by (1) if <(yv) < [4]> change y by (-1) if <<touching color [#000008]?> or <touching color [#FF9500]?>> set [yv v] to [0] else if <not <touching color [#00CECE]?>> change [yv v] by (-1) end end change y by (1) end if <( [abs v] of (xv)) > [0.1]> if <(xv) > [0.1]> set [dir v] to [L] else if <(xv) < [-0.1]> set [dir v] to [R] end end if <(timer) > [0.05]> if <(tempcoststorage) = [0]> set [tempcoststorage v] to [1] else if <(tempcoststorage) > [3]> set [tempcoststorage v] to [1] else change [tempcoststorage v] by (1) end end set [walking v] to [yes] reset timer end else set [tempcoststorage v] to [1] reset timer set [walking v] to [no] end if <(yv) < [-0.3]> set [tempcoststorage v] to [5] else if <(yv) > [0.3]> set [tempcoststorage v] to [6] end end switch to costume (tempcoststorage) endA real script
Offline
Above,Very good! Your on the Leaderboards with 78 points.
Offline
Leaderboards
- 1st is zubblewu with 78 Points!
- 2nd is Epicness123 with 12 Points!
- no one yet
- no one yet
How many people have entered:2
Offline
when gf clicked set [doRedraw? v] to [true] set [appPageIndex v] to [0] forever if <(doRedraw?) = [true]> clear hide go to x: ((((length of [AppName v] ) / (28)) + ((1) - (((length of [AppName v] ) / (28)) mod (1)))) * (-5)) y: (-100) set x to (0) set [i v] to [0] repeat (((length of [AppName v] ) / (28)) + ((1) - (((length of [AppName v] ) / (28)) mod (1)))) if <(appPageIndex) = (i)> switch to costume [PageSelect v] else switch to costume [PageUnselect v] end stamp change x by (10) change [i v] by (1) end go to x: (0) y: (170) switch to costume [TopBar v] stamp go to x: (0) y: (-154) switch to costume [dock v] stamp set [i v] to (((appPageIndex) * (28)) + (1)) set [i_pos v] to [1] repeat until <<(i) > (((appPageIndex) + (1)) * (28))> or <(item (i) of [AppName v] ) = []>> go to x: ((-180) + ((((i_pos) - (1)) mod (7)) * (60))) y: ((125) + (((((i_pos) - (1)) / (7)) - ((((i_pos) - (1)) / (7)) mod (1))) * (-60))) switch to costume (item (i) of [AppCostume v] ) stamp change [i_pos v] by (1) change [i v] by (1) end set [i v] to [1] repeat (6) go to x: ((-210) + ((i) * (60))) y: (-140) switch to costume (item (i) of [DockCostume v] ) stamp change [i v] by (1) end set [doRedraw? v] to [false] end set [NoClick v] to [0] if <(mouse y) > [-100]> set x to ((round ((((mouse x) + (20)) / (60)) - ((((mouse x) + (20)) / (60)) mod (1)))) * (60)) set y to (((round ((((mouse y) - (30)) / (60)) - ((((mouse y) - (30)) / (60)) mod (1)))) * (60)) + (65)) switch to costume [Blank v] if <<(mouse y) > [150]> or <<(mouse y) < [-101]> or <<(mouse x) < [-199]> or <(mouse x) > [200]>>>> set [NoClick v] to [1] end set [App# v] to (((appPageIndex) * (28)) + ((((((mouse x) + (20)) / (60)) - ((((mouse x) + (20)) / (60)) mod (1))) + (4)) + (((1) - ((((mouse y) - (30)) / (60)) - ((((mouse y) - (30)) / (60)) mod (1)))) * (7)))) if <<not <touching [mouse-pointer v]?>> or <(item (App#) of [AppName v] ) = []>> set [NoClick v] to [1] end else set [App# v] to [1] set x to ((((round (((mouse x) / (60)) - (((mouse x) / (60)) mod (1)))) * (60)) + (25)) + (5)) set y to (-140) if <<not <touching [mouse-pointer v]?>> or <<(mouse x) < [-175]> or <(mouse x) > [175]>>> set [NoClick v] to [1] end end if <(NoClick) = [0]> switch to costume [Help v] if <(mouse y) < [-100]> switch to costume (item ((((mouse x) / (60)) - (((mouse x) / (60)) mod (1))) + (4)) of [DockCostume v] ) else switch to costume (item (App#) of [AppCostume v] ) end if <not <(App#) > (length of [AppName v] )>> set [brightness v] effect to (10) stamp wait until <<mouse down?> or <not <touching [mouse-pointer v]?>>> clear graphic effects stamp if <mouse down?> if <(mouse y) > [-110]> set [brightness v] effect to (-10) stamp set [oX v] to (mouse x) set [oY v] to (mouse y) set [doDrag? v] to [false] reset timer repeat until <not <mouse down?>> if <( [sqrt v] of ((((mouse y) - (oY)) * ((mouse y) - (oY))) + (((mouse x) - (oX)) * ((mouse x) - (oX))))) > [20]> set [doDrag? v] to [true] set [AppData1 v] to (item (App#) of [AppName v] ) set [AppData2 v] to (item (App#) of [AppCostume v] ) set [OldApp# v] to (App#) delete (App#) of [AppName v] delete (App#) of [AppCostume v] show set [ghost v] effect to (35) repeat until <not <mouse down?>> set [App# v] to (((appPageIndex) * (28)) + ((((((mouse x) + (20)) / (60)) - ((((mouse x) + (20)) / (60)) mod (1))) + (4)) + (((1) - ((((mouse y) - (10)) / (65)) - ((((mouse y) - (10)) / (65)) mod (1)))) * (7)))) go to x: (mouse x) y: (mouse y) if <<touching [mouse-pointer v]?> and <<<(mouse y) < [150]> and <<(mouse y) > [-85]> and <<(mouse x) > [-201]> and <(mouse x) < [205]>>>> and <not <(App#) > (length of [AppName v] )>>>> switch to costume (AppData2) else if <(mouse y) < [-100]> switch to costume [Dockadd v] else switch to costume [No v] end end end hide if <<touching [mouse-pointer v]?> and <<<(mouse y) < [150]> and <<(mouse y) > [-75]> and <<(mouse x) > [-201]> and <(mouse x) < [205]>>>> and <not <(App#) > (length of [AppName v] )>>>> if <(item (App#) of [AppName v] ) = []> repeat until <<not <(item (App#) of [AppName v] ) = []>> or <(App#) < ((appPageIndex) * (28))>> change [App# v] by (-1) end change [App# v] by (1) if <(App#) > ((appPageIndex) * (28))> insert (AppData1) at (App#) of [AppName v] insert (AppData2) at (App#) of [AppCostume v] end else insert (AppData1) at (App#) of [AppName v] insert (AppData2) at (App#) of [AppCostume v] end else switch to costume (AppData2) show glide (0.4) secs to x: ((-180) + ((((OldApp#) - (1)) mod (7)) * (60))) y: ((125) + ((((((OldApp#) - (1)) mod (28)) / (7)) - (((((OldApp#) - (1)) mod (28)) / (7)) mod (1))) * (-60))) hide clear graphic effects stamp insert (AppData1) at (OldApp#) of [AppName v] insert (AppData2) at (OldApp#) of [AppCostume v] set [App# v] to (OldApp#) end end if <<(timer) > [1.5]> and <(doDrag?) = [false]>> set [i_pos v] to [0] set [i v] to (((appPageIndex) * (28)) + (1)) switch to costume [Delete v] repeat until <<(i) > (((appPageIndex) + (1)) * (28))> or <(item (i) of [AppName v] ) = []>> go to x: ((-200) + (((i_pos) mod (7)) * (60))) y: ((145) + ((((i_pos) / (7)) - (((i_pos) / (7)) mod (1))) * (-60))) stamp change [i_pos v] by (1) change [i v] by (1) end wait until <not <mouse down?>> reset timer switch to costume [DeleteOver v] set [doRedraw? v] to [false] repeat until <(doRedraw?) = [true]> if <not <mouse down?>> reset timer end set x to (((round ((((mouse x) + (30)) / (60)) - ((((mouse x) + (30)) / (60)) mod (1)))) * (60)) - (20)) set y to (((round ((((mouse y) + (20)) / (60)) - ((((mouse y) + (20)) / (60)) mod (1)))) * (60)) + (25)) if <<( [abs v] of (mouse x)) < [210]> and <<(mouse y) < [155]> and <(mouse y) > [-80]>>> set [App# v] to (((appPageIndex) * (28)) + ((((((mouse x) + (30)) / (60)) - ((((mouse x) + (30)) / (60)) mod (1))) + (4)) + (((1) - ((((mouse y) - (30)) / (65)) - ((((mouse y) - (30)) / (65)) mod (1)))) * (7)))) if <<touching [mouse-pointer v]?> and <not <(item (App#) of [AppName v] ) = []>>> show if <mouse down?> set [doRedraw? v] to [true] delete (App#) of [AppCostume v] delete (App#) of [AppName v] insert [] at (((appPageIndex) + (1)) * (28)) of [AppCostume v] insert [] at (((appPageIndex) + (1)) * (28)) of [AppName v] end else hide end else hide end end wait until <not <mouse down?>> set [App# v] to [0] set [OldApp# v] to [1] end if <(App#) = (OldApp#)> set [doRedraw? v] to [false] else set [doRedraw? v] to [true] end end if <touching [mouse-pointer v]?> set [AppData1 v] to (item (App#) of [AppName v] ) broadcast [OpenApp v] end end end end clear graphic effects else if <mouse down?> if <(mouse y) > [-100]> go to x: (0) y: (0) set [oX v] to (mouse x) set [ghost v] effect to (40) switch to costume [Arrow v] repeat until <not <mouse down?>> set y to (mouse y) set [dX v] to ((mouse x) - (oX)) if <<(dX) > [60]> and <(appPageIndex) < (((length of [AppName v] ) / (28)) - (((length of [AppName v] ) / (28)) mod (1)))>> point in direction (90 v) show else if <<(dX) < [-60]> and <(appPageIndex) > [0]>> point in direction (-90 v) show else hide end end end hide switch to costume [Blank v] point in direction (90 v) clear graphic effects if <<(dX) > [60]> and <(appPageIndex) < (((length of [AppName v] ) / (28)) - (((length of [AppName v] ) / (28)) mod (1)))>> change [appPageIndex v] by (1) set [doRedraw? v] to [true] else if <<(dX) < [-60]> and <(appPageIndex) > [0]>> change [appPageIndex v] by (-1) set [doRedraw? v] to [true] else end end else wait until <not <mouse down?>> end end end endReal code as well, part of Photon, a 1sprite 1 script OS. :3
Last edited by fg123 (2012-10-16 21:32:21)
Offline
y cuales son los premios del concurso ?
and what are the prizes for the contest?
y otra pregunta cualquier persona puede participar, aun q sea un joven mayor edad o hay algun limite de edad ?
and another question anyone can participate, even q is a young or older there an age limit?
Offline
How do you judge the "quality" of a script? Sheer length and complexity? I prefer simplicity.
when gf clicked set [Display v] to [Hello, world!] show variable [Display v]
Offline
amcerbu wrote:
How do you judge the "quality" of a script? Sheer length and complexity? I prefer simplicity.
when gf clicked set [Display v] to [Hello, world!] show variable [Display v]
Ahah, I can do you one better.
when gf clicked switch to costume [helloWorld v]
Offline
fg123 wrote:
amcerbu wrote:
How do you judge the "quality" of a script? Sheer length and complexity? I prefer simplicity.
when gf clicked set [Display v] to [Hello, world!] show variable [Display v]Ahah, I can do you one better.
when gf clicked switch to costume [helloWorld v]
As can I.
when gf clicked show
Offline
zubblewu wrote:
fg123 wrote:
amcerbu wrote:
How do you judge the "quality" of a script? Sheer length and complexity? I prefer simplicity.
when gf clicked set [Display v] to [Hello, world!] show variable [Display v]Ahah, I can do you one better.
when gf clicked switch to costume [helloWorld v]As can I.
when gf clicked show
( ) [ ] < >
...............(bad attempt at a smiley face. )
Last edited by Hardmath123 (2012-10-17 07:01:01)
Offline
Leaderboards
- 1st is fg123 with 307 Points!
- 2nd is zubblewu with 78 Points!
- 3rd is Epicness123 with 12 Points!
- 4th is amcerbu with 7 Points!
- 5th is HardMath123 with 4 Points!
How many people have entered:5
Offline
when gf clicked//This script goes in the sprite set [v v] to (pick random (1) to (1010101010102981999979162387621876986198648172634961989999999999999999999999999999999999)) set [q v] to (join ([background # v] of [Stage v]) (v)) set [p v] to (join (join (join (join (v) (q)) (join (v) (q))) (w))) set [w v] to (join (pick random (1) to (99999999999999999999999999999999999999999)) (v)) say (join (join (join (v) (q)) (p)) (w)) when gf clicked//in the stage switch to background (pick random (1) to (however many you have (try to make a lot)))This makes a sprite say random things.
Last edited by awesomeness321 (2012-11-06 20:52:58)
Offline
zubblewu wrote:
fg123 wrote:
amcerbu wrote:
How do you judge the "quality" of a script? Sheer length and complexity? I prefer simplicity.
when gf clicked set [Display v] to [Hello, world!] show variable [Display v]Ahah, I can do you one better.
when gf clicked switch to costume [helloWorld v]As can I.
when gf clicked show
Me too.
That's my script: The stage has hello world written on it.
Offline
when gf clicked repeat until <(length of [items v]) = (pick random [1] to [700])> add (pick random [1] to [700]) to [items v] end broadcast [24 v] stop script
Last edited by EzraB (2012-10-17 20:43:43)
Offline
ScratchContest2012 wrote:
Leaderboards
- 1st is fg123 with 307 Points!
- 2nd is zubblewu with 78 Points!
- 3rd is Epicness123 with 12 Points!
- 4th is amcerbu with 7 Points!
- 5th is HardMath123 with 4 Points!
How many people have entered:5
-------
amigo administrador o ScratchContest2012 no me has respondio a mi pregunta dije en este foro que si se ganaba algún premio en este concurso?? por favor si me pudieras responder a mi pregunta.
administrator or ScratchContest2012 friend I've answered my question on this forum said that if you won a prize in this contest? if I could please answer my question.
Offline
my (impossible) script
when <when gf clicked> clicked forever <forever> //j set [g v] to [sodjv] say <join (g)[dpoiv]> repeat <forever> eat [pie] end say [hello] end show never <forever> fake blocks end if <if><say[hello!]><if>[pie] <if> wrong !! <forever> looooooooooooooooooooooooooooooooooooong end end end don't <never<no[necropost v]>> end l say [this is complicated !] <if<<true>=<true>>> //h <<<<<:)>>>>> //k
Offline
My velocity with notes scripts.
When gf clicked forever change x by (xv)//to move left/right. change y by (yv)//to move up/down. if<touching [ground v]?>//or the colour of the floor, exept for walls. set [yv v] to [1]//to stay on top, depends on fall amount. if<key [up v] pressed?>//or jump button. set [yv v] to [6]//to jump, or any amount more than 0. end end if <key [left v] pressed?>//or left button. change [xv v] by [-0.98]//to move left can be -1 too or anything less, depends on the speed. if <key [right v] pressed?>//or right button. change [xv v] by [0.98]//to move right can be 1 too or anything greater, depends on the speed. end end set [xv v] to (xv) * [0.85]//slow you down, the smaller the fraction, the rougher the distance, the bigger the fraction, the smother the distance. change [yv v] by [-0.3]//to fall, don't make larger than stay on top script or jump part. end end
Offline
Ideas wrote:
My velocity with notes scripts.
When gf clicked forever change x by (xv)//to move left/right. change y by (yv)//to move up/down. if<touching [ground v]?>//or the colour of the floor, exept for walls. set [yv v] to [1]//to stay on top, depends on fall amount. if<key [up v] pressed?>//or jump button. set [yv v] to [6]//to jump, or any amount more than 0. end end if <key [left v] pressed?>//or left button. change [xv v] by [-0.98]//to move left can be -1 too or anything less, depends on the speed. if <key [right v] pressed?>//or right button. change [xv v] by [0.98]//to move right can be 1 too or anything greater, depends on the speed. end end set [xv v] to <(xv) * [0.85]>//slow you down, the smaller the fraction, the rougher the distance, the bigger the fraction, the smother the distance. change [yv v] by [-0.3]//to fall, don't make larger than stay on top script or jump part. end end
fixed
Offline
It's interesting to see these scripts, but I am going to make a simple one
when gf clicked show go to x: 0 y: -75 end think [Scripts in your posts!] for (3) secs
Offline
ahirbhairav wrote:
It's interesting to see these scripts, but I am going to make a simple one
when gf clicked show go to x: [0] y: [-75] end think [Scripts in your posts!] for (3) secs
fixed
Offline
How about this prime number calculator?
when I receive [Check_if_prime] forever change "Counter1" by 1 if ((item (Counter1) of "Prime numbers" ) > ((round ( "sqrt" of (Number_being_worked_out))) + 1)) add (Number_being_worked_out) to "List of Primes" add (Number_being_worked_out) to "Prime numbers" stop script if <((round ((Number_being_worked_out) / (item (Counter1) of "Prime numbers" ))) = ((Number_being_worked_out) / (item (Counter1) of "Prime numbers" ))) > stop script end when gf clicked set Number_being_worked_out to "5" delete "all" of "Prime numbers" delete "all" of "List of Primes" add "2" to "Prime numbers" add "3" to "Prime numbers" add "5" to "Prime numbers" add "2" to "List of Primes" add "3" to "List of Primes" add "5" to "List of Primes" forever change "Number_being_worked_out" by 1 set "Counter1" to "0" broadcast [Check_if_prime] and wait endSorry if blocks are a bit buggy. I haven't used the new format yet.
Last edited by subzerostig (2012-10-18 15:33:43)
Offline
subzerostig wrote:
How about this prime number calculator?
when I receive [Check_if_prime v] forever change [Counter1 v] by [1] if <<<item <Counter1> of [Prime numbers v] > > <round ( [sqrt] of (Number_being_worked_out>> + [1]> add (Number_being_worked_out v) to (List of Primes) add (Number_being_worked_out v) to (Prime numbers) stop script end if <<<round <<Number_being_worked_out> / <<item (Counter1> of [Prime numbers v] >>>> = <<Number_being_worked_out> / <item (Counter1> of [Prime numbers v] >> stop script end when gf clicked set [Number_being_worked_out v] to [5] delete [all v] of (Prime numbers) delete [all v] of (List of Primes) add [2] to (Prime numbers) add [3] to (Prime numbers) add [5] to (Prime numbers) add [2] to (List of Primes) add [3] to (List of Primes) add [5] to (List of Primes) forever change [Number_being_worked_out v] by [1] set (Counter1 v) to [0] broadcast [Check_if_prime v] and wait endSorry if blocks are a bit buggy. I haven't used the new format yet.
I ported the code from a previous Autoit3 script I made a while back.
fixing ...
Last edited by dvd4 (2012-10-22 12:40:32)
Offline
Topic closed
Pages: 1 2