set x to <pick random <pick random<pick random <pick random<pick random <pick random<pick random <pick random<pick random <pick random<pick random <pick random<pick random <pick random<pick random <pick random(1) to (2)>to (8)>to(77156564564894894564564564444552222050511111189877899977788822101201215645)>to (3.14159)>to (666)>to (8876)>to (22)>to (21)>to (877)>to (7866656)>to (0)>to (7666666)>to (888872)>to (9)>to(5)>to (4)> set x to [#00FBFF]
Last edited by gfchll (2013-03-24 21:58:48)
Offline
if <[]=[]> set x to [#666]
Last edited by OrcaCat (2013-03-24 23:53:15)
Offline
Testing...
if <(pick random (1) to (10)) = (pick random (1) to (5) to (10))> say [Success!] for (2) secs think [Awesome!] for (2) secs endUnsuccessful. I wanted to put 3 inputs on the "pick random (1) to (10)" block.
Offline
Marios-Star wrote:
color [#8C52E7] is touching [sprite1 v]I hope I did this right!
yes, but you could just do the scripts for sprite 1 as this:
when gf clicked forever if <touching color [#8C52E7]> endAlthough, in 2.0 you will have to do this:
when gf clicked forever if <touching color [#8C52E7]> end endBut your idea would also work. However, it isn't on scratch. If only scratch had something like this for the stage:
color [8C52E7] is touching [mouse pointer v]And also so you could do this, too.
color [8C52E7] is touching [edge v]
Offline
PresidentialNyan wrote:
Marios-Star wrote:
<color [#8C52E7] is touching [sprite1 v]>I hope I did this right!yes, but you could just do the scripts for sprite 1 as this:
when gf clicked forever if <touching color [#8C52E7]> endAlthough, in 2.0 you will have to do this:when gf clicked forever if <touching color [#8C52E7]> end endBut your idea would also work. However, it isn't on scratch. If only scratch had something like this for the stage:<color [8C52E7] is touching [mouse pointer v]>And also so you could do this, too.<color [8C52E7] is touching [edge v]>
there. Fixed my own post. It wouldn't let me edit it.
Offline
Me wrote:
Me wrote:
Marios-Star wrote:
<color [#8C52E7] is touching [sprite1 v]>I hope I did this right!yes, but you could just do the scripts for sprite 1 as this:
when gf clicked forever if <touching color [#8C52E7]> endAlthough, in 2.0 you will have to do this:when gf clicked forever if <touching color [#8C52E7]> end endBut your idea would also work. However, it isn't on scratch. If only scratch had something like this for the stage:<color [#8C52E7] is touching [mouse pointer v]>And also so you could do this, too.<color [#8C52E7] is touching [edge v]>there. Fixed my own post. It wouldn't let me edit it.
fixed my own for the second time! :0
Offline
Me wrote:
Me wrote:
Me wrote:
yes, but you could just do the scripts for sprite 1 as this:
when gf clicked forever if <touching color [#8C52E7]> endAlthough, in 2.0 you will have to do this:when gf clicked forever if <touching color [#8C52E7]> end endBut your idea would also work. However, it isn't on scratch. If only scratch had something like this for the stage:<color [#8C52E7] is touching [mouse pointer v]?>And also so you could do this, too.<color [#8C52E7] is touching [edge v]?>there. Fixed my own post. It wouldn't let me edit it.
fixed my own for the second time! :0
I'm not fixin' it 1 more time!
Offline
Me wrote:
Me wrote:
Me wrote:
there. Fixed my own post. It wouldn't let me edit it.fixed my own for the second time! :0
I'm not fixin' it 1 more time!
ok, maybe 1 more time, thats it!!!
Offline
Me wrote:
Me wrote:
Me wrote:
there. Fixed my own post. It wouldn't let me edit it.fixed my own for the second time! :0
I'm not fixin' it 1 more time!
THERE. DONE!!!
Offline
Me wrote:
Me wrote:
Me wrote:
yes, but you could just do the scripts for sprite 1 as this:
when gf clicked forever if <touching color [#8C52E7]?> endAlthough, in 2.0 you will have to do this:when gf clicked forever if <touching color [#8C52E7]?> end endBut your idea would also work. However, it isn't on scratch. If only scratch had something like this for the stage:<color [#8C52E7] is touching [mouse pointer v]>And also so you could do this, too.<color [#8C52E7] is touching [edge v]>there. Fixed my own post. It wouldn't let me edit it.
fixed my own for the second time! :0
fixed for the third time. I tried, people. I tried.
Offline
Me wrote:
Me wrote:
Me wrote:
yes, but you could just do the scripts for sprite 1 as this:when gf clicked forever if <touching color [#8C52E7]?> endAlthough, in 2.0 you will have to do this:when gf clicked forever if <touching color [#8C52E7]?> end endBut your idea would also work. However, it isn't on scratch. If only scratch had something like this for the stage:<color [#8C52E7] is touching [mouse pointer v]?>And also so you could do this, too.<color [#8C52E7] is touching [edge v]?>there. Fixed my own post. It wouldn't let me edit it.
fixed my own for the second time! :0
Alright, FIXED!!!!!!!!! yay cool!!!!!!!!!!!!!!!
Offline
PresidentialNyan wrote:
Me wrote:
Me wrote:
yes, but you could just do the scripts for sprite 1 as this:
when gf clicked forever if <touching color [#8C52E7]?>Although, in 2.0 you will have to do this:when gf clicked forever if <touching color [#8C52E7]?> endBut your idea would also work. However, it isn't on scratch. If only scratch had something like this for the stage:<color [#8C52E7] is touching [mouse pointer v]?>And also so you could do this, too.<color [#8C52E7] is touching [edge v]?>there. Fixed my own post. It wouldn't let me edit it.fixed my own for the second time! :0
Alright, FIXED!!!!!!!!! yay cool!!!!!!!!!!!!!!!
Fixed completely; you had some extra "end" 's.
With regards,
ErnieParke
Offline
gfchll wrote:
set x to <pick random <pick random<pick random <pick random<pick random <pick random<pick random <pick random<pick random <pick random<pick random <pick random<pick random <pick random<pick random <pick random(1) to (2)>to (8)>to(77156564564894894564564564444552222050511111189877899977788822101201215645)>to (3.14159)>to (666)>to (8876)>to (22)>to (21)>to (877)>to (7866656)>to (0)>to (7666666)>to (888872)>to (9)>to(5)>to (4)> set x to [#00FBFF]
<Tunnel <Tunnel <Tunnel <Tunnel <Tunnel <Tunnel <Tunnel <Tunnel <Tunnel <Tunnel <Tunnel <Tunnel>>>>>>>>>>>>
Offline
when gf clicked go to front go to x: (-162) y: (-101) set [GravityX v] to [0.9] set [GravityY v] to [-0.5] set [xvel v] to [0] set [yvel v] to [0] forever change [yvel v] by (GravityY) if <key [right arrow v] pressed?> change [xvel v] by (0.7) end if <key [left arrow v] pressed?> change [xvel v] by (-0.7) end set [xvel v] to ((xvel) * (GravityX)) change x by (xvel) if <touching color [#000008]?> change y by (1) if <touching color [#000008]?> change y by (1) if <touching color [#000008]?> change y by (1) if <touching color [#000008]?> change y by (1) if <touching color [#000008]?> change y by (1) if <touching color [#000008]?> change y by (-5) change x by ((xvel) * (-1)) if <key [up arrow v] pressed?> if <(xvel) > [0]> set [xvel v] to [-8] set [yvel v] to [10] else if <(xvel) < [0]> set [xvel v] to [8] set [yvel v] to [10] end end else set [xvel v] to [0] end end end end end end end change y by (yvel) if <touching color [#000008]?> change y by ((yvel) * (-1)) set [yvel v] to [0] end change y by (-1) if <touching color [#000008]?> if <key [up arrow v] pressed?> set [yvel v] to [10] end end change y by (1) end
Offline
gfchll wrote:
set x to <pick random <pick random<pick random <pick random<pick random <pick random<pick random <pick random<pick random <pick random<pick random <pick random<pick random <pick random<pick random <pick random(1) to (2)>to (8)>to(77156564564894894564564564444552222050511111189877899977788822101201215645)>to (3.14159)>to (666)>to (8876)>to (22)>to (21)>to (877)>to (7866656)>to (0)>to (7666666)>to (888872)>to (9)>to(5)>to (4)> set x to [#00FBFF]
Please don't do this, it lags
Offline
HamsterMan2000 wrote:
when gf clicked go to front go to x: (-162) y: (-101) set [GravityX v] to [0.9] set [GravityY v] to [-0.5] set [xvel v] to [0] set [yvel v] to [0] forever change [yvel v] by (GravityY) if <key [right arrow v] pressed?> change [xvel v] by (0.7) end if <key [left arrow v] pressed?> change [xvel v] by (-0.7) end set [xvel v] to ((xvel) * (GravityX)) change x by (xvel) if <touching color [#000008]?> change y by (1) if <touching color [#000008]?> change y by (1) if <touching color [#000008]?> change y by (1) if <touching color [#000008]?> change y by (1) if <touching color [#000008]?> change y by (1) if <touching color [#000008]?> change y by (-5) change x by ((xvel) * (-1)) if <key [up arrow v] pressed?> if <(xvel) > [0]> set [xvel v] to [-8] set [yvel v] to [10] else if <(xvel) < [0]> set [xvel v] to [8] set [yvel v] to [10] end end else set [xvel v] to [0] end end end end end end end change y by (yvel) if <touching color [#000008]?> change y by ((yvel) * (-1)) set [yvel v] to [0] end change y by (-1) if <touching color [#000008]?> if <key [up arrow v] pressed?> set [yvel v] to [10] end end change y by (1) end
i think those are r2dav2's platformer base scripts. Don't copy.
they might not be, just a warning not to copy scratchers.
Last edited by PresidentialNyan (2013-03-26 11:52:42)
Offline
PresidentialNyan wrote:
HamsterMan2000 wrote:
when gf clicked go to front go to x: (-162) y: (-101) set [GravityX v] to [0.9] set [GravityY v] to [-0.5] set [xvel v] to [0] set [yvel v] to [0] forever change [yvel v] by (GravityY) if <key [right arrow v] pressed?> change [xvel v] by (0.7) end if <key [left arrow v] pressed?> change [xvel v] by (-0.7) end set [xvel v] to ((xvel) * (GravityX)) change x by (xvel) if <touching color [#000008]?> change y by (1) if <touching color [#000008]?> change y by (1) if <touching color [#000008]?> change y by (1) if <touching color [#000008]?> change y by (1) if <touching color [#000008]?> change y by (1) if <touching color [#000008]?> change y by (-5) change x by ((xvel) * (-1)) if <key [up arrow v] pressed?> if <(xvel) > [0]> set [xvel v] to [-8] set [yvel v] to [10] else if <(xvel) < [0]> set [xvel v] to [8] set [yvel v] to [10] end end else set [xvel v] to [0] end end end end end end end change y by (yvel) if <touching color [#000008]?> change y by ((yvel) * (-1)) set [yvel v] to [0] end change y by (-1) if <touching color [#000008]?> if <key [up arrow v] pressed?> set [yvel v] to [10] end end change y by (1) endi think those are r2dav2's platformer base scripts. Don't copy.
they might not be, just a warning not to copy scratchers.
A lot of users use these scripts for their platformers. It's not copying. And besides, this is a play area for Scratchblocks it's not really copying.
Offline
[scratchblocks]
<touching color [light blue v]?>
<touching color [orange v]?>
<touching color [green v]?>
[/scratchbocks]
i hope i did these right!
Offline
PresidentialNyan wrote:
<touching color [light blue v]?> <touching color [orange v]?> <touching color [green v]?>i hope i did these right!
Fixed; you forgot an "l" in "Scratchblocks" .
With regards,
ErnieParke
Offline