This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#901 2012-08-03 17:20:21

maxamillion321
Scratcher
Registered: 2011-06-17
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

repeat <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
say [blah blah blah]

Last edited by maxamillion321 (2012-08-03 17:22:44)

Offline

 

#902 2012-08-03 18:38:02

wasabi56
Scratcher
Registered: 2012-02-10
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Last edited by wasabi56 (2012-08-03 18:40:28)


http://i.picasion.com/pic58/c23d4d2fc75f459dcf3d9ebf3e8ba395.gif
http://www.weebly.com/uploads/1/0/1/4/10146167/2294523_orig.png

Offline

 

#903 2012-08-03 23:19:37

gfchll
Scratcher
Registered: 2012-04-21
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

 <g<f<c<h<l<l< t<h<i<n<k<s< s<c<r>a>t>c>h>i>s >a>w>e>s>o>m>e>!>
when I receive[3.1415926535897932384626433832795028841971693993751058209 7494459230781640628620899862803482534211706798214808651 3282306647093844609550582231725359408128481117450284102 7019385211055596446229489549303819644288109756659334461 2847564823378678316527120190914564856692346034861045432 6648213393607260249141273724587006606315588174881520920 9628292540917153643678925903600113305305488204665213841 4695194151160943305727036575959195309218611738193261179 3105118548074462379962749567351885752724891227938183011 9491298336733624406566430860213949463952247371907021798 6094370277053921717629317675238467481846766940513200056 8127145263560827785771342757789609173637178721468440901 2249534301465495853710507922796892589235420199561121290 2196086403441815981362977477130996051870721134999999837 2978049951059731732816096318595024459455346908302642522 3082533446850352619311881710100031378387528865875332083 8142061717766914730359825349042875546873115956286388235 3787593751957781857780532171226806613001927876611195909 2164201989380952572010654858632788659361533818279682303 0195203530185296899577362259941389124972177528347913151 5574857242454150695950829533116861727855889075098381754 6374649393192550604009277016711390098488240128583616035 6370766010471018194295559619894676783744944825537977472 6847104047534646208046684259069491293313677028989152104 7521620569660240580381501935112533824300355876402474964 7326391419927260426992279678235478163600934172164121992 4586315030286182974555706749838505494588586926995690927 2107975093029553211653449872027559602364806654991198818 3479775356636980742654252786255181841757467289097777279 3800081647060016145249192173217214772350141441973568548 1613611573525521334757418494684385233239073941433345477 6241686251898356948556209921922218427255025425688767179 0494601653466804988627232791786085784383827967976681454 1009538837863609506800642251252051173929848960841284886 2694560424196528502221066118630674427862203919494504712 3713786960956364371917287467764657573962413890865832645 9958133904780275900994657640789512694683983525957098258 2262052248940772671947826848260147699090264013639443745 5305068203496252451749399651431429809190659250937221696 4615157098583874105978859597729754989301617539284681382 6868386894277415599185592524595395943104997252468084598 7273644695848653836736222626099124608051243884390451244 1365497627807977156914359977001296160894416948685558484 0635342207222582848864815845602850601684273945226746767 8895252138522549954666727823986456596116354886230577456 4980355936345681743241125150760694794510965960940252288 7971089314566913686722874894056010150330861792868092087 4760917824938589009714909675985261365549781893129784821 6829989487226588048575640142704775551323796414515237462 3436454285844479526586782105114135473573952311342716610 2135969536231442952484937187110145765403590279934403742 0073105785390621983874478084784896833214457138687519435 0643021845319104848100537061468067491927819119793995206 1419663428754440643745123718192179998391015919561814675 1426912397489409071864942319615679452080951465502252316 0388193014209376213785595663893778708303906979207734672 2182562599661501421503068038447734549202605414665925201 4974428507325186660021324340881907104863317346496514539 0579626856100550810665879699816357473638405257145910289 7064140110971206280439039759515677157700420337869936007 2305587631763594218731251471205329281918261861258673215 7919841484882916447060957527069572209175671167229109816 9091528017350671274858322287183520935396572512108357915 1369882091444210067510334671103141267111369908658516398 3150197016515116851714376576183515565088490998985998238 7345528331635507647918535893226185489632132933089857064 2046752590709154814165498594616371802709819943099244889 5757128289059232332609729971208443357326548938239119325 9746366730583604142813883032038249037589852437441702913 2765618093773444030707469211201913020330380197621101100 4492932151608424448596376698389522868478312355265821314 4957685726243344189303968642624341077322697802807318915 4411010446823252716201052652272111660396665573092547110 5578537634668206531098965269186205647693125705863566201 8558100729360659876486117910453348850346113657686753249 4416680396265797877185560845529654126654085306143444318 5867697514566140680070023787765913440171274947042056223 0538994561314071127000407854733269939081454664645880797 2708266830634328587856983052358089330657574067954571637 7525420211495576158140025012622859413021647155097925923 0990796547376125517656751357517829666454779174501129961 4890304639947132962107340437518957359614589019389713111 7904297828564750320319869151402870808599048010941214722 1317947647772622414254854540332157185306142288137585043 0633217518297986622371721591607716692547487389866549494 5011465406284336639379003976926567214638530673609657120 v]

Last edited by gfchll (2012-08-10 18:19:45)


HELLO EVERYBODY!

Offline

 

#904 2012-08-04 17:35:29

suneel
Scratcher
Registered: 2012-01-27
Posts: 96

Re: Official [Scratchblocks] Testing Play Area

Hardmath123 wrote:

You can get a relatively good approximation by writing the project summary (shift-click File).

    when green flag 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
    end

thats a lot of code...


Get Gangnam Style for free!
getgangnamforfree.weebly.co­­m

Offline

 

#905 2012-08-04 17:37:24

suneel
Scratcher
Registered: 2012-01-27
Posts: 96

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
i like mods
hopefully this works

EDIT it did!

Last edited by suneel (2012-08-04 17:37:54)


Get Gangnam Style for free!
getgangnamforfree.weebly.co­­m

Offline

 

#906 2012-08-04 19:47:55

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Official [Scratchblocks] Testing Play Area

zubblewu wrote:

Perfect platformer script








when gf clicked

go to x: (0) y: (-90)

set [xv v] to [0]

set [yv v] to [0]

forever  

set [bleh v] to [0]

if <key [left arrow v] pressed?> 

change [xv v] by (-0.7)

end

if <key [right arrow v] pressed?> 

change [xv v] by (0.7)

end

set [xv v] to ((xv) * (0.9))

change x by (xv)

if <touching color [#000008]?> 

change y by (1)

change [bleh v] by (1)

if <touching color [#000008]?> 

change y by (1)

change [bleh v] by (1)

if <touching color [#000008]?> 

change y by (1)

change [bleh v] by (1)

if <touching color [#000008]?> 

change y by (1)

change [bleh v] by (1)

if <touching color [#000008]?> 

change y by (1)

change [bleh v] by (1)

if <touching color [#000008]?>

change x by ((xv) * (-1))

set [xv v] to [0]

change y by (-5)

if <key [up arrow v] pressed?>

change x by (5)

set [c n v] to [-5]

if <touching color [#000008]?>

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]?> 

set [xv v] to [10]

set [yv v] to [12]

end

end

change x by (c n)

else

change [xv v] by ((0) - ((xv) / (bleh)))

end

else

end

end

end

end

end

end

set [yv v] to ((yv) * (0.9))

change y by (yv)

if <touching color [#000008]?> 

change y by ((yv) * (-1))

set [yv v] to [0]

end

change y by (-1)

if <key [up arrow v] pressed?> 

if <touching color [#000008]?> 

set [yv v] to [12]

end

end

change y by (1)

if <(yv) < [4]> 

change y by (-1)

if <not <touching color [#000008]?>> 

change [yv v] by (-1)

end

change y by (1)

end

end

Fast, and kind of jittery, and falls through walls a lot. Would not recomend.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#907 2012-08-05 03:31:15

zubblewu
Scratcher
Registered: 2011-02-17
Posts: 1000+

Re: Official [Scratchblocks] Testing Play Area

henley wrote:

zubblewu wrote:

Perfect platformer script








when gf clicked

go to x: (0) y: (-90)

set [xv v] to [0]

set [yv v] to [0]

forever  

set [bleh v] to [0]

if <key [left arrow v] pressed?> 

change [xv v] by (-0.7)

end

if <key [right arrow v] pressed?> 

change [xv v] by (0.7)

end

set [xv v] to ((xv) * (0.9))

change x by (xv)

if <touching color [#000008]?> 

change y by (1)

change [bleh v] by (1)

if <touching color [#000008]?> 

change y by (1)

change [bleh v] by (1)

if <touching color [#000008]?> 

change y by (1)

change [bleh v] by (1)

if <touching color [#000008]?> 

change y by (1)

change [bleh v] by (1)

if <touching color [#000008]?> 

change y by (1)

change [bleh v] by (1)

if <touching color [#000008]?>

change x by ((xv) * (-1))

set [xv v] to [0]

change y by (-5)

if <key [up arrow v] pressed?>

change x by (5)

set [c n v] to [-5]

if <touching color [#000008]?>

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]?> 

set [xv v] to [10]

set [yv v] to [12]

end

end

change x by (c n)

else

change [xv v] by ((0) - ((xv) / (bleh)))

end

else

end

end

end

end

end

end

set [yv v] to ((yv) * (0.9))

change y by (yv)

if <touching color [#000008]?> 

change y by ((yv) * (-1))

set [yv v] to [0]

end

change y by (-1)

if <key [up arrow v] pressed?> 

if <touching color [#000008]?> 

set [yv v] to [12]

end

end

change y by (1)

if <(yv) < [4]> 

change y by (-1)

if <not <touching color [#000008]?>> 

change [yv v] by (-1)

end

change y by (1)

end

end

Fast, and kind of jittery, and falls through walls a lot. Would not recomend.

Not jittery at all, never goes through walls, wall jump, slope detect etc...


........................................................................................................................................................................................................................................

Offline

 

#908 2012-08-05 04:48:24

Splodgey
Scratcher
Registered: 2011-04-26
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

Splodgey wrote:

powerpoint56 wrote:

When [I am cool v] clicked
set [coolness v] to (1)
wait (1) sec
wait until <touching [coolhogs v]?>
change [coolness v] by (2)
if <(coolness) > (1000)>
die and then comeback to life
end
if <[coolhogs v] = (woah!)>
say [woah is right v] for [a lot of] secs
end
wait
if <(powerpoint56) = [bored?]>
stop all
end
Did you notice that that Scratch project just stopped?  lol

Loads of Others wrote:

spam

I love how people are so good at listening.

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.

IS EVERYONE HERE DEAF?!?

Offline

 

#909 2012-08-05 05:16:41

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Official [Scratchblocks] Testing Play Area

Splodgey wrote:

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.

IS EVERYONE HERE DEAF?!?

Thanks for the reminder...but please don't shout  smile


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#910 2012-08-06 11:29:25

william465
Scratcher
Registered: 2012-04-20
Posts: 47

Re: Official [Scratchblocks] Testing Play Area

 
when gf clicked
forever
imagine
program 
share


http://i46.tinypic.com/w1qmxf.png

Offline

 

#911 2012-08-06 11:31:48

william465
Scratcher
Registered: 2012-04-20
Posts: 47

Re: Official [Scratchblocks] Testing Play Area

when i recieve [blob start]
play sound [blob 4 music]


http://i46.tinypic.com/w1qmxf.png

Offline

 

#912 2012-08-06 12:13:53

zubblewu
Scratcher
Registered: 2011-02-17
Posts: 1000+

Re: Official [Scratchblocks] Testing Play Area

The swarm...


when gf clicked

delete (all v) of [xpos v]

delete (all v) of [ypos v]

delete (all v) of [xv v]

delete (all v) of [yv v]

repeat (8)  

add (pick random (-240) to (240)) to [xpos v]

add (pick random (-240) to (240)) to [xpos v]

add (pick random (-240) to (240)) to [xpos v]

add (pick random (-240) to (240)) to [xpos v]

add (pick random (-240) to (240)) to [xpos v]

end

repeat (8)  

add (pick random (-180) to (180)) to [ypos v]

add (pick random (-180) to (180)) to [ypos v]

add (pick random (-180) to (180)) to [ypos v]

add (pick random (-180) to (180)) to [ypos v]

add (pick random (-180) to (180)) to [ypos v]

end

repeat (8)  

add [0] to [xv v]

add [0] to [xv v]

add [0] to [xv v]

add [0] to [xv v]

add [0] to [xv v]

end

repeat (8)  

add [0] to [yv v]

add [0] to [yv v]

add [0] to [yv v]

add [0] to [yv v]

add [0] to [yv v]

end

forever  

set [counter v] to [0]

clear

show

change [counter v] by (1)

go to x: (item (counter) of [xpos v] ) y: (item (counter) of [ypos v] )

if <not <((y:) - (y position)) = [0]>>

if <((y:) - (y position)) < [0]>

point in direction (( [atan v] of (((x:) - (x position)) / ((y:) - (y position)))) + (180))

else

point in direction ( [atan v] of (((x:) - (x position)) / ((y:) - (y position))))

end

else

if <((x:) - (x position)) > [0]>

point in direction (90 v)

else

point in direction (-90 v)

end

end

turn ccw (pick random (30) to (-30)) degrees

replace item (counter) of [xv v] with ((item (counter) of [xv v] ) + (( [sin v] of (direction)) * (pick random (1) to (1.5))))

replace item (counter) of [yv v] with ((item (counter) of [yv v] ) + (( [cos v] of (direction)) * (pick random (1) to (1.5))))

go to x: ((item (counter) of [xpos v] ) + (item (counter) of [xv v] )) y: ((item (counter) of [ypos v] ) + (item (counter) of [yv v] ))

replace item (counter) of [xpos v] with (x position)

replace item (counter) of [ypos v] with (y position)

point in direction (90 v)

stamp

end

[removed excess scratch blocks]

Last edited by Lucario621 (2012-08-07 16:13:55)


........................................................................................................................................................................................................................................

Offline

 

#913 2012-08-06 12:52:15

zubblewu
Scratcher
Registered: 2011-02-17
Posts: 1000+

Re: Official [Scratchblocks] Testing Play Area

Twee :>






when gf clicked

set [CenterX v] to [0]

set [CenterY v] to [0]

set [CenterZ v] to [0]

set [Xrot v] to [0]

set [Yrot v] to [0]

set [Zrot v] to [0]

set [Xpos v] to [0]

set [Ypos v] to [0]

set [Zpos v] to [0]

forever  

hide

pen up

clear

change [Xrot v] by ((mouse x) / (25))

pen up

set pen color to [#A86F00]

set pen size to (4)

set [RenderIterator v] to [1]

set [X v] to ((item (RenderIterator) of [Xs v] ) + (CenterX))

set [Y v] to ((item (RenderIterator) of [Ys v] ) + (CenterY))

set [Z v] to ((item (RenderIterator) of [Zs v] ) + (CenterZ))

set [XY v] to ((( [cos v] of (Yrot)) * (Y)) - (( [sin v] of (Yrot)) * (Z)))

set [XZ v] to ((( [sin v] of (Yrot)) * (Y)) + (( [cos v] of (Yrot)) * (Z)))

set [YZ v] to ((( [cos v] of (Xrot)) * (XZ)) - (( [sin v] of (Xrot)) * (X)))

set [YX v] to ((( [sin v] of (Xrot)) * (XZ)) + (( [cos v] of (Xrot)) * (X)))

set [ZX v] to ((( [cos v] of (Zrot)) * (YX)) - (( [sin v] of (Zrot)) * (XY)))

set [ZY v] to ((( [sin v] of (Zrot)) * (YX)) + (( [cos v] of (Zrot)) * (XY)))

set [SFR v] to ((FocalLength) / ((FocalLength) + (((YZ) - (CameraZ)) + (Zpos))))

go to x: ((((ZX) + ((Xpos) - (CameraX))) * (SFR)) * (CameraZoom)) y: (((((Ypos) - (CameraY)) + (ZY)) * (SFR)) * (CameraZoom))

end

Shortened version

Last edited by zubblewu (2012-08-07 20:33:13)


........................................................................................................................................................................................................................................

Offline

 

#914 2012-08-06 14:55:23

Sean2011
New Scratcher
Registered: 2012-07-22
Posts: 4

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
eat dot
change points by 10
say [om noms] for (om nom) secs
if <(points) = [10]>
eat rainbows and be epic
end

Offline

 

#915 2012-08-07 13:57:35

angryninja
Scratcher
Registered: 2012-05-20
Posts: 82

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
lalalalalalalalalalalalalalalalalala


http://i46.tinypic.com/ixcwgw.jpg

Offline

 

#916 2012-08-07 14:32:21

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: Official [Scratchblocks] Testing Play Area

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<and>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#917 2012-08-07 19:33:07

maxamillion321
Scratcher
Registered: 2011-06-17
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

<s<c<r<a<t>c>h>o>n>

Last edited by maxamillion321 (2012-08-07 19:44:38)

Offline

 

#918 2012-08-07 19:47:19

maxamillion321
Scratcher
Registered: 2011-06-17
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<I'm bored>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Last edited by maxamillion321 (2012-08-07 19:49:01)

Offline

 

#919 2012-08-07 19:52:15

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: Official [Scratchblocks] Testing Play Area

maxamillion321 wrote:

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<I'm bored>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<Me too.>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


Get ready for domination of:  tongue

Offline

 

#920 2012-08-07 19:57:03

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Official [Scratchblocks] Testing Play Area

I would like to remind you again...this topic is for practicing your Scratchblocks - not for spam.  Thanks.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#921 2012-08-07 21:16:49

gooeygoo
Scratcher
Registered: 2012-05-07
Posts: 82

Re: Official [Scratchblocks] Testing Play Area

((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((^_^)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))


Play meh games, dont beh shy!!!
http://scratch.mit.edu/users/gooeygoo

Offline

 

#922 2012-08-07 21:28:22

gooeygoo
Scratcher
Registered: 2012-05-07
Posts: 82

Re: Official [Scratchblocks] Testing Play Area

suneel wrote:

Hardmath123 wrote:

You can get a relatively good approximation by writing the project summary (shift-click File).

    when green flag clicked
        point in direction (90)
        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)) 
                go to x: ((PlayerX) * 30) y: ((PlayerY) * 30)
            else
                if ((Dir) = (1)) 
                    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
    end

thats a lot of code...

Somebody really needs to fix this script, it's really messy.

Last edited by gooeygoo (2012-08-08 08:00:21)


Play meh games, dont beh shy!!!
http://scratch.mit.edu/users/gooeygoo

Offline

 

#923 2012-08-08 09:29:16

numberonegamers
Scratcher
Registered: 2012-07-12
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

When gf clicked
Say [whats up?]
Repeat until <touching [sprite hi]>

Offline

 

#924 2012-08-08 09:39:32

EnnyB
Scratcher
Registered: 2012-01-25
Posts: 12

Re: Official [Scratchblocks] Testing Play Area

When gf clicked
forever
say [😄] for (3) secs
think [scratch on!] for (3) secs
end


EnnyBhttp://www.previews.co.za/cschool/cat_leaps.gif

Offline

 

#925 2012-08-08 09:45:07

EnnyB
Scratcher
Registered: 2012-01-25
Posts: 12

Re: Official [Scratchblocks] Testing Play Area

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<(answer)=(🐱Meow!)>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


EnnyBhttp://www.previews.co.za/cschool/cat_leaps.gif

Offline

 

Board footer