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

#1 2013-02-17 18:05:46

estile
Scratcher
Registered: 2013-01-26
Posts: 100+

some blocks that could make things easier

i think that these blocks could be useful if added:
[scratchblocks]
(sprite)
[\scratchblocks]
you could use it in sensing scripts, for example, toutching(sprite) would mean touching any sprite or (var) of (sprite) would sense and react if any sprite had var=x
another would be
[scratchblocks]
if(i recieve v)
end
[\scratchblocks]
it would be more useful if the when i recieve block had a version that wasnt a cap block.


http://i45.tinypic.com/s4nvxl.png

Offline

 

#2 2013-02-17 18:10:27

estile
Scratcher
Registered: 2013-01-26
Posts: 100+

Re: some blocks that could make things easier

(sprite)
if(i recieve v)
do x
end
fixed


http://i45.tinypic.com/s4nvxl.png

Offline

 

#3 2013-02-18 21:20:12

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: some blocks that could make things easier

1.It would make more sense to simply have a dropdown "any" in the sensing block, and the second idea you mentioned here doesn't seem to make sense, since it'd produce two outputs.
2.Been suggested many times before, I support, I don't know why it doesn't exist. Note before anyone says there's a workaround, there's a workaround for the whole broadcast system, so it's a rather null point.


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#4 2013-02-19 07:42:06

estile
Scratcher
Registered: 2013-01-26
Posts: 100+

Re: some blocks that could make things easier

if you mean the sprite block, i realize it could produce multiple outputs, just thought it could react to each output


http://i45.tinypic.com/s4nvxl.png

Offline

 

#5 2013-02-19 08:19:03

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: some blocks that could make things easier

estile wrote:

if you mean the sprite block, i realize it could produce multiple outputs, just thought it could react to each output

Yes, but say I were to put it into something like this:


when gf clicked//sprite 1
set x to (50)

when gf clicked//sprite 2
set x to (100)

when gf clicked
if <([x position v] of (sprite)) = [100]>
do something
end
The boolean would output both true and false, also, what would the sprite block output if you clicked it?


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#6 2013-02-19 17:53:03

estile
Scratcher
Registered: 2013-01-26
Posts: 100+

Re: some blocks that could make things easier

i guess it would need some explaining. but i thought that if a situation was true and false, it would react as if it is true because it would mean if the x pos. of any sprite= 100, do something


http://i45.tinypic.com/s4nvxl.png

Offline

 

Board footer