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

#3176 2012-10-29 14:14:06

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: ITopic: Welcome to your local block library!

I have a Panther block.

NAME: error beep
CODE:

Code:

self beep

COLOR:

Code:

#FF0000

What it does:
Self explanatory.. BEEP!


I'm back.
Maybe.

Offline

 

#3177 2012-10-29 15:02:54

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: ITopic: Welcome to your local block library!

How can you make a hat block in Panther, if it's possible?


I'm back.
Maybe.

Offline

 

#3178 2012-10-29 17:25:10

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

DigiTechs wrote:

Greenatic wrote:

DigiTechs wrote:

I swear there used to be this block in the Block Libary, but can there be a 'presentation mode' block?

What do you mean?  A stack block that switches to it?  A boolean?  A reporter?

Well, a boolean would be helpful too - so two blocks:
"Switch to presentation mode" --normal stack block
"Is in presentation mode?" --boolean

I remember making a reporter for mode a while ago.   hmm

Offline

 

#3179 2012-10-29 19:19:58

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Just curious, but would this script work?

http://i.imgur.com/Hg2Yl.gif


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#3180 2012-10-30 11:37:44

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: ITopic: Welcome to your local block library!

mythbusteranimator wrote:

Just curious, but would this script work?

http://i.imgur.com/Hg2Yl.gif

Yes it would, and that block has been requested.
EDIT: WAAIT!
Stop block is like Stop Script but for a block.

Last edited by DigiTechs (2012-10-30 11:38:15)


I'm back.
Maybe.

Offline

 

#3181 2012-10-30 13:07:36

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: ITopic: Welcome to your local block library!

Enjoying my panther block!  smile  *dingdingdingding etc*


I'm back.
Maybe.

Offline

 

#3182 2012-10-30 13:59:28

PopTarties
Scratcher
Registered: 2012-05-29
Posts: 19

Re: ITopic: Welcome to your local block library!

Add This:
http://scratch.mit.edu/static/icons/buddy/1781138_med.png?t=2012-10-30+13%3A57%3A43

Code:

pickA: t1 OrB: t2 
    | t3 t4 |
    t4 _ t1.
    t3 _ self randomFrom: 1 to: 2.
    t3 = 2 ifTrue: [^ t2].
    t3 = 1 ifTrue: [^ t4]

http://scratch.mit.edu/static/icons/buddy/1391630_med.png?t=2012-07-23+14%3A18%3A37

Offline

 

#3183 2012-10-30 18:08:35

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: ITopic: Welcome to your local block library!

DigiTechs wrote:

mythbusteranimator wrote:

Just curious, but would this script work?

http://i.imgur.com/Hg2Yl.gif

Yes it would, and that block has been requested.
EDIT: WAAIT!
Stop block is like Stop Script but for a block.

What would you need?
A variable that only runs the script if set as "run" or whatever?


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#3184 2012-10-31 08:55:26

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: ITopic: Welcome to your local block library!

mythbusteranimator wrote:

DigiTechs wrote:

mythbusteranimator wrote:

Just curious, but would this script work?

http://i.imgur.com/Hg2Yl.gif

Yes it would, and that block has been requested.
EDIT: WAAIT!
Stop block is like Stop Script but for a block.

What would you need?
A variable that only runs the script if set as "run" or whatever?


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#3185 2012-10-31 17:30:45

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: ITopic: Welcome to your local block library!

mythbusteranimator wrote:

Just curious, but would this script work?

http://i.imgur.com/Hg2Yl.gif

Nope. What you just made was "if the Boolean is false, run forever, otherwise do nothing."

What you should do if a Boolean is supposed to be evaluated several times is not make the input Boolean, but make it Boolean unevaluated and instead of if (Boolean) you want if (call (Boolean)). But even this wont work for the above block, it will simply be repeat until <>, as you are saying "keep on checking if this is false, and whenever it is, run the script but when it's true, stop". Basically the requested block is actually impossible to make with BYOB 3.1.1.
(also, Boolean is meant to be capitalised)


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#3186 2012-10-31 17:37:51

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: ITopic: Welcome to your local block library!

joefarebrother wrote:

mythbusteranimator wrote:

Just curious, but would this script work?

http://i.imgur.com/Hg2Yl.gif

Nope. What you just made was "if the Boolean is false, run forever, otherwise do nothing."

What you should do if a Boolean is supposed to be evaluated several times is not make the input Boolean, but make it Boolean unevaluated and instead of if (Boolean) you want if (call (Boolean)). But even this wont work for the above block, it will simply be repeat until <>, as you are saying "keep on checking if this is false, and whenever it is, run the script but when it's true, stop". Basically the requested block is actually impossible to make with BYOB 3.1.1.
(also, Boolean is meant to be capitalised)

That's almost the same thing as:

forever if <not (boolean)>
[do something]
end
However, this only checks once at the beginning of the script, rather than continuously during the script. Depending on your use case, this may or may not work.

Last edited by nXIII (2012-10-31 17:38:34)


nXIII

Offline

 

#3187 2012-10-31 17:51:10

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: ITopic: Welcome to your local block library!

nXIII wrote:

joefarebrother wrote:

mythbusteranimator wrote:

Just curious, but would this script work?

http://i.imgur.com/Hg2Yl.gif

Nope. What you just made was "if the Boolean is false, run forever, otherwise do nothing."

What you should do if a Boolean is supposed to be evaluated several times is not make the input Boolean, but make it Boolean unevaluated and instead of if (Boolean) you want if (call (Boolean)). But even this wont work for the above block, it will simply be repeat until <>, as you are saying "keep on checking if this is false, and whenever it is, run the script but when it's true, stop". Basically the requested block is actually impossible to make with BYOB 3.1.1.
(also, Boolean is meant to be capitalised)

That's almost the same thing as:

forever if <not (boolean)>
[do something]
end
However, this only checks once at the beginning of the script, rather than continuously during the script. Depending on your use case, this may or may not work.

Actually, because of the stop block, it is

if <not (Boolean)>
forever
run script

Last edited by joefarebrother (2012-10-31 17:51:42)


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#3188 2012-10-31 17:54:05

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Wow.
That explains why it was still requested.  tongue


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#3189 2012-10-31 18:29:09

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: ITopic: Welcome to your local block library!

joefarebrother wrote:

nXIII wrote:

joefarebrother wrote:

Nope. What you just made was "if the Boolean is false, run forever, otherwise do nothing."

What you should do if a Boolean is supposed to be evaluated several times is not make the input Boolean, but make it Boolean unevaluated and instead of if (Boolean) you want if (call (Boolean)). But even this wont work for the above block, it will simply be repeat until <>, as you are saying "keep on checking if this is false, and whenever it is, run the script but when it's true, stop". Basically the requested block is actually impossible to make with BYOB 3.1.1.
(also, Boolean is meant to be capitalised)

That's almost the same thing as:

forever if <not (boolean)>
[do something]
end
However, this only checks once at the beginning of the script, rather than continuously during the script. Depending on your use case, this may or may not work.

Actually, because of the stop block, it is

if <not (Boolean)>
forever
run script

No, I was describing the desired (not given) sequence of blocks, as a replacement for the custom block call itself. Your example describes what would happen if the block existed but the boolean slot were not unevaluated.

Last edited by nXIII (2012-10-31 18:29:38)


nXIII

Offline

 

#3190 2012-10-31 22:04:02

laser314
Scratcher
Registered: 2010-07-16
Posts: 100+

Re: ITopic: Welcome to your local block library!

Is putting the credits in a .txt that is included with the mod ok? And do I have to say exactly which block each user made?

Last edited by laser314 (2012-10-31 22:04:14)


http://alpha.scratch.mit.edu/scratchr2/static//images/logo_sm.png 2.0 Alpha Tester!http://i49.tinypic.com/1zckcqb.png

Offline

 

#3191 2012-11-01 15:57:47

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: ITopic: Welcome to your local block library!

laser314 wrote:

Is putting the credits in a .txt that is included with the mod ok? And do I have to say exactly which block each user made?

I belive you should modify the "About Scratch" menu, in the Help menu. I would make a new one (simply create a new one, and copy the code over) and change the name. Then include the credits for the people who made the blocks..
I belive this should be enough:

Thanks to everyone in the Block Libary for the blocks in this mod!
[link to block libary]


I'm back.
Maybe.

Offline

 

#3192 2012-11-01 17:09:38

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: ITopic: Welcome to your local block library!

laser314 wrote:

Is putting the credits in a .txt that is included with the mod ok?

Yes.

And do I have to say exactly which block each user made?

Yes.


nXIII

Offline

 

#3193 2012-11-01 17:13:35

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: ITopic: Welcome to your local block library!

nXIII wrote:

joefarebrother wrote:

nXIII wrote:


That's almost the same thing as:

forever if <not (boolean)>
[do something]
end
However, this only checks once at the beginning of the script, rather than continuously during the script. Depending on your use case, this may or may not work.

Actually, because of the stop block, it is

if <not (Boolean)>
forever
run script

No, I was describing the desired (not given) sequence of blocks, as a replacement for the custom block call itself. Your example describes what would happen if the block existed but the boolean slot were not unevaluated.

Actually the desired block is that it runs the script but between every block it checks the condition and if it is true it pauses the script until it is false, (it basically should add a wait until not between each block) however this is impossible to make with existing BYOB features. The desired block would be the equivalent of turning

run
block1
block2
block3
but if <something> pause
into
block1
wait until <not <something>>
block2
wait until <not <something>>
block3
wait until <not <something>>
But it is impossible.


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#3194 2012-11-01 18:10:04

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: ITopic: Welcome to your local block library!

joefarebrother wrote:

Actually the desired block is that it runs the script but between every block it checks the condition and if it is true it pauses the script until it is false, (it basically should add a wait until not between each block) however this is impossible to make with existing BYOB features. The desired block would be the equivalent of turning

run
block1
block2
block3
but if <something> pause
into
block1
wait until <not <something>>
block2
wait until <not <something>>
block3
wait until <not <something>>
But it is impossible.

I am aware of that; by "desired" I meant "most desirable within the set of all BYOB3 blocks"

Last edited by nXIII (2012-11-01 18:10:33)


nXIII

Offline

 

#3195 2012-11-01 19:02:36

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: ITopic: Welcome to your local block library!

How do I save my panther blocks?


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#3196 2012-11-02 04:57:44

dreamod
New Scratcher
Registered: 2012-01-22
Posts: 100+

Re: ITopic: Welcome to your local block library!

mythbusteranimator wrote:

How do I save my panther blocks?

you don't.  big_smile

No. seriously, you can't save your blocks unless you hack panther. Good idea though.

Offline

 

#3197 2012-11-02 08:19:47

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: ITopic: Welcome to your local block library!

dreamod wrote:

mythbusteranimator wrote:

How do I save my panther blocks?

you don't.  big_smile

No. seriously, you can't save your blocks unless you hack panther. Good idea though.

Oh.One time use only?  tongue


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#3198 2012-11-02 09:41:08

dreamod
New Scratcher
Registered: 2012-01-22
Posts: 100+

Re: ITopic: Welcome to your local block library!

mythbusteranimator wrote:

dreamod wrote:

mythbusteranimator wrote:

How do I save my panther blocks?

you don't.  big_smile

No. seriously, you can't save your blocks unless you hack panther. Good idea though.

Oh.One time use only?  tongue

Yeah, that project only

Offline

 

#3199 2012-11-02 09:43:44

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: ITopic: Welcome to your local block library!

dreamod wrote:

mythbusteranimator wrote:

dreamod wrote:


you don't.  big_smile

No. seriously, you can't save your blocks unless you hack panther. Good idea though.

Oh.One time use only?  tongue

Yeah, that project only

Wow.


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#3200 2012-11-02 10:20:56

dreamod
New Scratcher
Registered: 2012-01-22
Posts: 100+

Re: ITopic: Welcome to your local block library!

mythbusteranimator wrote:

dreamod wrote:

mythbusteranimator wrote:


Oh.One time use only?  tongue

Yeah, that project only

Wow.

Want me to make a simple patch that saves the blocks into panther?

Offline

 

Board footer