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.
Offline
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)
Offline
Add This:
pickA: t1 OrB: t2 | t3 t4 | t4 _ t1. t3 _ self randomFrom: 1 to: 2. t3 = 2 ifTrue: [^ t2]. t3 = 1 ifTrue: [^ t4]
Offline
DigiTechs wrote:
mythbusteranimator wrote:
Just curious, but would this script work?
http://i.imgur.com/Hg2Yl.gifYes 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?
Offline
mythbusteranimator wrote:
DigiTechs wrote:
mythbusteranimator wrote:
Just curious, but would this script work?
http://i.imgur.com/Hg2Yl.gifYes 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?
Offline
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)
Offline
joefarebrother wrote:
mythbusteranimator wrote:
Just curious, but would this script work?
http://i.imgur.com/Hg2Yl.gifNope. 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] endHowever, 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)
Offline
nXIII wrote:
joefarebrother wrote:
mythbusteranimator wrote:
Just curious, but would this script work?
http://i.imgur.com/Hg2Yl.gifNope. 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] endHowever, 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)
Offline
Wow.
That explains why it was still requested.
Offline
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] endHowever, 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)
Offline
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]
Offline
nXIII wrote:
joefarebrother wrote:
nXIII wrote:
That's almost the same thing as:forever if <not (boolean)> [do something] endHowever, 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 scriptNo, 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> pauseinto
block1 wait until <not <something>> block2 wait until <not <something>> block3 wait until <not <something>>But it is impossible.
Offline
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> pauseintoblock1 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)
Offline
dreamod wrote:
mythbusteranimator wrote:
How do I save my panther blocks?
you don't.
![]()
No. seriously, you can't save your blocks unless you hack panther. Good idea though.
Oh.One time use only?
Offline
mythbusteranimator wrote:
dreamod wrote:
mythbusteranimator wrote:
How do I save my panther blocks?
you don't.
![]()
No. seriously, you can't save your blocks unless you hack panther. Good idea though.Oh.One time use only?
![]()
Yeah, that project only
Offline
dreamod wrote:
mythbusteranimator wrote:
dreamod wrote:
you don't.![]()
No. seriously, you can't save your blocks unless you hack panther. Good idea though.Oh.One time use only?
![]()
Yeah, that project only
Wow.
Offline