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

#3201 2013-04-17 16:50:44

Liamadams
Scratcher
Registered: 2012-12-08
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

GiorgosKarvelas365 wrote:

add (mouse x) to ([abs v] of [81])

fixed.


http://i39.tinypic.com/3309476.jpg

Offline

 

#3202 2013-04-17 16:58:36

Liamadams
Scratcher
Registered: 2012-12-08
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
set [œ v] to [0]
forever
if <touching <item (length of (œ))>?>
 change [œ v] by ((join (mouse x) ([sin v] of (œ) * ([e^] of ((œ) + (pick random (œ) to (œ))?>
end
repeat ((length of (œ) + (pick random [1] to [23]))
 change x by (œ)
 change y by ((œ) * [45644637583294596])
end
lol  lol

Last edited by Liamadams (2013-04-26 17:09:11)


http://i39.tinypic.com/3309476.jpg

Offline

 

#3203 2013-04-17 17:13:32

Flyboy
Scratcher
Registered: 2007-12-08
Posts: 76

Re: Official [Scratchblocks] Testing Play Area

when [any v] key pressed
if <(keypressed) > (0)>
broadcast [keypress v]
else
Sorry, an internal error was encountered in the system.  Press any key for assistance.
If (assistance doesn't come)
Scream at top of lungs and pound on keyboard.
end
end
Press any key to continue... :D


Remix this! http://img695.imageshack.us/img695/1689/flyboy.png-'07-today

Offline

 

#3204 2013-04-17 17:41:33

Skylord_Guthix
New Scratcher
Registered: 2012-05-18
Posts: 1

Re: Official [Scratchblocks] Testing Play Area

I seem to get lag on Scratch when I have a gigantic chain of if/else stuck together, e.g. in my W.I.P. Sonic game:

when I receive [Sound Test! v]
set [Audio Track Selected v] to [1]
set [Zone v] to [Sound Test]
switch to background [SOUNDTEST v]
show variable [Audio Track Selected v]
stop all sounds
play sound [race results v]
forever
if <<(Audio Track Selected) = [1]> and <key [g v] pressed?>>
stop all sounds
play sound [Sonic_Jump_Sound v]
else
if <<(Audio Track Selected) = [2]> and <key [g v] pressed?>>
stop all sounds
play sound [S3extralife v]
else
if <<(Audio Track Selected) = [3]> and <key [g v] pressed?>>
stop all sounds
play sound [AngelIslandZoneAct1 v]
else
if <<(Audio Track Selected) = [4]> and <key [g v] pressed?>>
stop all sounds
play sound [MysticCaveZone v]
else
if <<(Audio Track Selected) = [5]> and <key [g v] pressed?>>
stop all sounds
play sound [Sonic 2 Boss v]
else
if <<(Audio Track Selected) = [6]> and <key [g v] pressed?>>
stop all sounds
play sound [Sonic CD Title Screen v]
else
if <<(Audio Track Selected) = [7]> and <key [g v] pressed?>>
stop all sounds
play sound [14-game-over v]
else
if <<(Audio Track Selected) = [8]> and <key [g v] pressed?>>
stop all sounds
play sound [race results v]
else
if <<(Audio Track Selected) = [9]> and <key [g v] pressed?>>
stop all sounds
play sound [sonic drop rings v]
else
if <<(Audio Track Selected) = [10]> and <key [g v] pressed?>>
stop all sounds
play sound [sonic die v]
else
if <<(Audio Track Selected) = [11]> and <key [g v] pressed?>>
stop all sounds
play sound [stage alter v]
else
if <<(Audio Track Selected) = [12]> and <key [g v] pressed?>>
stop all sounds
play sound [Sonic Advance 3 Boss Pinch v]
else
end
end
end
end
end
end
end
end
end
end
end
end
end
end

Offline

 

#3205 2013-04-17 18:51:25

flamepelt100
New Scratcher
Registered: 2013-04-17
Posts: 1

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
repeat until <(timer) > [10]>
  go to [mouse-pointerblahblag v]
end
think [Scripts in your posts!] for (3) secs

Offline

 

#3206 2013-04-17 20:46:05

PresidentialNyan
Scratcher
Registered: 2013-02-23
Posts: 59

Re: Official [Scratchblocks] Testing Play Area

Skylord_Guthix wrote:

I seem to get lag on Scratch when I have a gigantic chain of if/else stuck together, e.g. in my W.I.P. Sonic game:

when I receive [Sound Test! v]
set [Audio Track Selected v] to [1]
set [Zone v] to [Sound Test]
switch to background [SOUNDTEST v]
show variable [Audio Track Selected v]
stop all pinks
play sound [race results v]
forever
if <<(Audio Track Selected) = [1]> and <key [g v] pressed?>>
stop all pinks
play sound [Sonic_Jump_Sound v]
else
if <<(Audio Track Selected) = [2]> and <key [g v] pressed?>>
stop all pinks
play sound [S3extralife v]
else
if <<(Audio Track Selected) = [3]> and <key [g v] pressed?>>
stop all pinks
play sound [AngelIslandZoneAct1 v]
else
if <<(Audio Track Selected) = [4]> and <key [g v] pressed?>>
stop all pinks
play sound [MysticCaveZone v]
else
if <<(Audio Track Selected) = [5]> and <key [g v] pressed?>>
stop all pinks
play sound [Sonic 2 Boss v]
else
if <<(Audio Track Selected) = [6]> and <key [g v] pressed?>>
stop all pinks
play sound [Sonic CD Title Screen v]
else
if <<(Audio Track Selected) = [7]> and <key [g v] pressed?>>
stop all pinks
play sound [14-game-over v]
else
if <<(Audio Track Selected) = [8]> and <key [g v] pressed?>>
stop all pinks
play sound [race results v]
else
if <<(Audio Track Selected) = [9]> and <key [g v] pressed?>>
stop all pinks
play sound [sonic drop rings v]
else
if <<(Audio Track Selected) = [10]> and <key [g v] pressed?>>
stop all pinks
play sound [sonic die v]
else
if <<(Audio Track Selected) = [11]> and <key [g v] pressed?>>
stop all pinks
play sound [stage alter v]
else
if <<(Audio Track Selected) = [12]> and <key [g v] pressed?>>
stop all pinks
play sound [Sonic Advance 3 Boss Pinch v]
else
end
end
end
end
end
end
end
end
end
end
end
end

fixed.

Last edited by PresidentialNyan (2013-04-17 20:46:37)


http://i43.tinypic.com/4ruira.jpg

Offline

 

#3207 2013-04-17 20:48:56

PresidentialNyan
Scratcher
Registered: 2013-02-23
Posts: 59

Re: Official [Scratchblocks] Testing Play Area

//
when flag clicked
change <x position> by <y position>
//
//
repeat <when Green Flag clicked>
 //
 if <when i receive [10 v]>
  //
  //
  //
  if
end
end
end

Last edited by PresidentialNyan (2013-04-17 20:51:02)


http://i43.tinypic.com/4ruira.jpg

Offline

 

#3208 2013-04-17 23:15:50

Sparkle3000
Scratcher
Registered: 2012-11-18
Posts: 6

Re: Official [Scratchblocks] Testing Play Area

[scratchblocks]
when gf clicked
think [i hope this works...] for (1) secs
say [yay it worked!] for (1) secs
random star block
[scratchblocks]


http://i.imgur.com/8pLRvfG.gif

Offline

 

#3209 2013-04-18 02:35:30

beyen
Scratcher
Registered: 2013-04-02
Posts: 53

Re: Official [Scratchblocks] Testing Play Area

GiorgosKarvelas365 wrote:

when gf clicked
wait until <key [enter v] pressed?>
wait until <not <key [enter v] pressed?>>
if <[Drive sensor motor v] is moving>
  point in direction (90 v)
else
if <(battery voltage) = [0]>
stop all
 end
end

Fixed. And also, there isn't a key [enter] pressed block.

Offline

 

#3210 2013-04-18 03:03:38

beyen
Scratcher
Registered: 2013-04-02
Posts: 53

Re: Official [Scratchblocks] Testing Play Area

beyen wrote:

when gf clicked
if <<(popcorn) * <<when gf clicked> * <join (3.1415926535897932384626433832795028841971693993751058209749445923) (smelly old sock)>>> = (300)>
  say <[universe v] contains <item (last v) of [3.1415926535897932384626433832795028841971693993751058209749445923 v]><when gf clicked <when gf clicked>><when [space v] key pressed <I die! no, just kidding.>><when I receive [nothing v] <clear>>>
else
repeat (165)
  turn right (2) degrees
  say [whee!] for [0.01] secs
end
repeat (5)
  play sound [glitch v] until done
end
stop all pinks
stop all
end

edited. fixed. roll
                     ^
                  click!

Offline

 

#3211 2013-04-18 08:33:16

cobraguy
Scratcher
Registered: 2009-11-18
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

Sparkle3000 wrote:

when gf clicked
think [i hope this works...] for (1) secs
say [yay it worked!] for (1) secs
random star block

Fixed, just forgot your "/" in scratchblocks.


Fruit Fighter, when your food eats you.
http://i.imgur.com/8CR6Lnj.png?1

Offline

 

#3212 2013-04-18 08:35:39

cobraguy
Scratcher
Registered: 2009-11-18
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

stop all pinks


Fruit Fighter, when your food eats you.
http://i.imgur.com/8CR6Lnj.png?1

Offline

 

#3213 2013-04-18 15:48:52

Flyboy
Scratcher
Registered: 2007-12-08
Posts: 76

Re: Official [Scratchblocks] Testing Play Area

canadiandufus wrote:

when [poop v] clicked

Fixed.


Remix this! http://img695.imageshack.us/img695/1689/flyboy.png-'07-today

Offline

 

#3214 2013-04-18 18:21:35

7734f
Scratcher
Registered: 2010-12-23
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

cobraguy wrote:

stop all pinks

Why is it "

stop all pinks
" and not "
stop all sounds
"?


http://internetometer.com/image/38992.png   http://i37.tinypic.com/2qixx6c.png

Offline

 

#3215 2013-04-18 21:36:10

7734f
Scratcher
Registered: 2010-12-23
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
repeat until <(timer) > (10)>
  go to [mouse-pointer v]
end
think [Scripts in your posts!] for [3] secs
EdIt: That actually worked  tongue

Last edited by 7734f (2013-04-18 21:36:38)


http://internetometer.com/image/38992.png   http://i37.tinypic.com/2qixx6c.png

Offline

 

#3216 2013-04-18 21:37:40

7734f
Scratcher
Registered: 2010-12-23
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

Flyboy wrote:

canadiandufus wrote:

when [poop] clicked

Fixed.

There isn't a [v] because of a syntax limitation.


http://internetometer.com/image/38992.png   http://i37.tinypic.com/2qixx6c.png

Offline

 

#3217 2013-04-19 03:02:06

beyen
Scratcher
Registered: 2013-04-02
Posts: 53

Re: Official [Scratchblocks] Testing Play Area

themakerbaker wrote:

when gf clicked
forever
stop all reds 
stop all blues
stop all pinks
stop all horrible cheeseburgers at mcdonalds
stop all bad chicken at kfc
stop voices at stores
stop logo changing

fixed.
also, it's stop all pinks and forever blocks are flat at the bottom.

Offline

 

#3218 2013-04-19 08:36:09

Liamadams
Scratcher
Registered: 2012-12-08
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

when green flag clicked
ask ([cos v] of [#ED0909]) and wait


http://i39.tinypic.com/3309476.jpg

Offline

 

#3219 2013-04-19 11:14:47

bubby3
Scratcher
Registered: 2012-11-19
Posts: 44

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
repeat until <(timer) > [10]>
  go to [mouse-pointer v]
end
think [Scripts in your posts!] for (3) secs
hlgkafghkfdhgkdfslgkhdfklgjhldfkjghlhjdfkhgkl

Offline

 

#3220 2013-04-19 11:15:16

GiorgosKarvelas365
New Scratcher
Registered: 2013-03-01
Posts: 37

Re: Official [Scratchblocks] Testing Play Area

Test1
[scratchblcocks]
stop all pinks
[/scratchblocks]
and much more

Offline

 

#3221 2013-04-19 11:41:19

themakerbaker
Scratcher
Registered: 2013-04-02
Posts: 13

Re: Official [Scratchblocks] Testing Play Area

stop all
you cant do that
 

Offline

 

#3222 2013-04-19 12:36:41

Flyboy
Scratcher
Registered: 2007-12-08
Posts: 76

Re: Official [Scratchblocks] Testing Play Area

GiorgosKarvelas365 wrote:

Test1

stop all pinks
and much more

Fixed.


Remix this! http://img695.imageshack.us/img695/1689/flyboy.png-'07-today

Offline

 

#3223 2013-04-19 17:52:30

alavisBPCS
New Scratcher
Registered: 2013-04-02
Posts: 7

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
forever
if <<touching[mouse-pointer v> and <mouse down>
  go to [mouse-pointer v]
first test lol

Offline

 

#3224 2013-04-19 17:57:42

alavisBPCS
New Scratcher
Registered: 2013-04-02
Posts: 7

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
forever
if <<touching [mouse-pointer v}> and <mouse down>
  go to [mouse-pointer v]
welp trying again

Offline

 

#3225 2013-04-19 18:00:43

alavisBPCS
New Scratcher
Registered: 2013-04-02
Posts: 7

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
forever
if <<touching [mouse-pointer v]> and <mouse down>
  go to [mouse-pointer v]
welp trying again

Offline

 

Board footer