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

#1 2012-04-13 19:28:26

atkeel
Scratcher
Registered: 2012-02-04
Posts: 52

New Block: If _____ clicked?

I have a new block idea:

               
   


                                 
                                              < [________^] clicked?>
                                                 |Stage       |
                                                 |_________|
                                                 |Sprite (1)  |
                                                 |Sprite (2)  |
                                                 |(etc....)    |
                                                 |__________|


Kind of like the
[blocks]<key[  ]pressed?>[/blocks]  ,
with the dropdown list, but instead of 'key,' it's a sprite or the stage, and instead of 'pressed?', 'clicked?'.

So, it SHOULD look something like:
   
           [blocks] <( [/blocks] (Stage/Sprite{#}) [blocks] ]clicked> [/blocks]

Last edited by atkeel (2012-04-13 19:32:11)


http://i272.photobucket.com/albums/jj183/Rainbow_Cows/cow_face.jpg Isn't he CUTE?!

Offline

 

#2 2012-04-13 19:31:55

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: New Block: If _____ clicked?

You mean like this

when [sprite 2] clicked
? It's already implemented and if you want to know for another sprite, you can do this

when [this sprite] clicked
broadcast [this sprite has been clicked v]
when I receive [this sprite has been clicked v]
do stuff

Offline

 

#3 2012-04-13 19:39:40

atkeel
Scratcher
Registered: 2012-02-04
Posts: 52

Re: New Block: If _____ clicked?

No, I mean make one in the Sensing section, to make scripting easier, like:


when gf clicked
if <[        ] clicked?>
  do stuff
end

Last edited by atkeel (2012-04-13 21:11:58)


http://i272.photobucket.com/albums/jj183/Rainbow_Cows/cow_face.jpg Isn't he CUTE?!

Offline

 

#4 2012-04-13 19:55:48

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: New Block: If _____ clicked?

atkeel wrote:

No, I mean make one in the Sensing section, to make scripting easier, like:


when gf clicked
if <[        ] clicked?>
  do stuff
end
So, yah.

But you can already make it like that with what I posted.

Offline

 

#5 2012-04-13 21:09:29

atkeel
Scratcher
Registered: 2012-02-04
Posts: 52

Re: New Block: If _____ clicked?

ya, but it would be EASIER with a block like this!


http://i272.photobucket.com/albums/jj183/Rainbow_Cows/cow_face.jpg Isn't he CUTE?!

Offline

 

#6 2012-04-13 21:13:45

atkeel
Scratcher
Registered: 2012-02-04
Posts: 52

Re: New Block: If _____ clicked?

when time begins
forever
  =) (SMILE!)
end
(New blocks are SO FUN TO MAKE!)

Last edited by atkeel (2012-04-13 21:14:16)


http://i272.photobucket.com/albums/jj183/Rainbow_Cows/cow_face.jpg Isn't he CUTE?!

Offline

 

#7 2012-04-13 21:15:41

atkeel
Scratcher
Registered: 2012-02-04
Posts: 52

Re: New Block: If _____ clicked?

forever
  <join (eat) (POTATOES!)>
end

Last edited by atkeel (2012-04-13 21:17:36)


http://i272.photobucket.com/albums/jj183/Rainbow_Cows/cow_face.jpg Isn't he CUTE?!

Offline

 

#8 2012-04-13 21:20:06

atkeel
Scratcher
Registered: 2012-02-04
Posts: 52

Re: New Block: If _____ clicked?

<[(Hello Peoples! Do u know what time it is?)]>
wait until <(say: ADVENTURE TIME?!)>
say [No, BEDTIME!]


http://i272.photobucket.com/albums/jj183/Rainbow_Cows/cow_face.jpg Isn't he CUTE?!

Offline

 

#9 2012-04-13 21:21:14

atkeel
Scratcher
Registered: 2012-02-04
Posts: 52

Re: New Block: If _____ clicked?

These last three are completely unrelated and random (the smile, potatoes, and time ones)


http://i272.photobucket.com/albums/jj183/Rainbow_Cows/cow_face.jpg Isn't he CUTE?!

Offline

 

#10 2012-04-13 21:37:13

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: New Block: If _____ clicked?

atkeel wrote:

ya, but it would be EASIER with a block like this!

But it's already really easy. All you need is 3 blocks. This really isn't needed.

Offline

 

#11 2012-04-13 21:38:07

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: New Block: If _____ clicked?

atkeel wrote:

when time begins
forever
  =) (SMILE!)
end
(New blocks are SO FUN TO MAKE!)

You can play with the scratchblocks here.

Last edited by trinary (2012-04-13 21:38:16)


http://trinary.tk/images/signature_.php

Offline

 

#12 2012-04-14 08:29:20

atkeel
Scratcher
Registered: 2012-02-04
Posts: 52

Re: New Block: If _____ clicked?

TorbyFork234 wrote:

atkeel wrote:

ya, but it would be EASIER with a block like this!

But it's already really easy. All you need is 3 blocks. This really isn't needed.

Again, this is QUICKER! Plus u can use it like:



when gf clicked
say [Hi!] for (2) secs
if <      clicked>
  set <counter> to (7)
end


http://i272.photobucket.com/albums/jj183/Rainbow_Cows/cow_face.jpg Isn't he CUTE?!

Offline

 

Board footer