Ok, This Was Originally For Making The <receive []> Block, But Now That Panther Has Come Out, We Have Found Some Problems With Their Block, So This Is Now For Improving Their <receive []> Block. Thank You.
Last edited by TheGameMaster1231 (2010-05-19 18:14:41)
Offline
W00t! I'll do ut when I get home.
Anyone have the code for the
When I receive ___ block?
Offline
SeptimusHeap wrote:
W00t! I'll do ut when I get home.
Woohoo! Yay!
Offline
I made a (last received) block, but it involved editing the normal broadcast block and adding a new instance variable. It is in Slash.
Last edited by Billybob-Mario (2010-05-09 18:22:55)
Offline
Billybob-Mario wrote:
I made a (last received) block, but it involved editing the normal broadcast block and adding a new instance variable. It is in Slash.
Ya, I've Seen That In Slash 1.0 Beta. And I Think You Should Rename It To (last broadcasted)
Offline
nXIII wrote:
LOL I just made this... it was really easy.
You MADE IT!?!? How How How How How How HOW!?!?
Edit: HOW!?!? (Lol.
)
Last edited by TheGameMaster1231 (2010-05-10 07:59:14)
Offline
Hello!?!? Anybody Here!?!? HELLO!?!? ANYBODY!?!?
Offline
Hello. I'm here.
AN I think he made the last recieved block.
Offline
SeptimusHeap wrote:
Hello. I'm here.
AN I think he made the last recieved block.
Hi!
Oh.
Lol.
Huh?
This
Is
Getting
A
(Lol.)
Bit
Annoying.
Ok,
I'll
Stop.
Ok, Well Anyway, Can You Try To Make It Work Now?
Last edited by TheGameMaster1231 (2010-05-10 08:10:35)
Offline
I need the code for the 'When I recieve ___' block...
Offline
SeptimusHeap wrote:
I need the code for the 'When I recieve ___' block...
The "when I recieve" block hasn't really a code, just the type.The block spec is ('when I receive %e' #E #-) and the #E makes the block.
Offline
meew0 wrote:
SeptimusHeap wrote:
I need the code for the 'When I recieve ___' block...
The "when I recieve" block hasn't really a code, just the type.The block spec is ('when I receive %e' #E #-) and the #E makes the block.
I bet it does. All blocks have code SOMEWHERE.
Offline
SeptimusHeap wrote:
I need the code for the 'When I recieve ___' block...
Maybe This Code Is What You're Talking About:
blockFromSpec: t1 color: t2
| t3 t4 t5 t6 t7 t8 t9 |
t3 _ ScratchTranslator translationFor: (t1 at: 1).
t9 _ CommandBlockMorph argPermutationForSpec: (t1 at: 1)
withTranslation: t3.
t4 _ t1 at: 2.
t5 _ (t1 at: 3) asSymbol.
t6 _ self defaultArgsFor: t1.
(#(#E #K #M #S #W ) includes: t4)
ifTrue: [^ (self hatBlockType: t4)
color: t2].
(t4 includes: $c)
ifTrue: [t5 = #doIfElse
ifTrue: [t7 _ IfElseBlockMorph new isSpecialForm: true]
ifFalse: [t7 _ CBlockMorph new isSpecialForm: true]]
ifFalse: [(t4 includes: $r)
| (t4 includes: $b)
ifTrue: [t7 _ ReporterBlockMorph new]
ifFalse: [t7 _ CommandBlockMorph new]].
(t4 includes: $b)
ifTrue: [t7 isBoolean: true].
(t4 includes: $s)
ifTrue: [t7 isSpecialForm: true].
(t4 includes: $t)
ifTrue: [t7 isTimed: true].
(ScriptableScratchMorph isSpriteSpecificTarget: self selector: t5)
ifTrue: [t8 _ self]
ifFalse: [t8 _ self ownerThatIsA: ScratchStageMorph].
^ t7 argPermutation: t9;
color: t2;
selector: t5;
commandSpec: t3;
defaultArgs: t6;
receiver: t8Is That It?
Offline
Sparkyasa wrote:
How did you get so many lines on your signature?
I Used The Spacebar. See!?!?
Last edited by TheGameMaster1231 (2010-05-10 16:07:05)
Offline
TheGameMaster1231 wrote:
SeptimusHeap wrote:
I need the code for the 'When I recieve ___' block...
Maybe This Code Is What You're Talking About:
Code:
blockFromSpec: t1 color: t2 | t3 t4 t5 t6 t7 t8 t9 | t3 _ ScratchTranslator translationFor: (t1 at: 1). t9 _ CommandBlockMorph argPermutationForSpec: (t1 at: 1) withTranslation: t3. t4 _ t1 at: 2. t5 _ (t1 at: 3) asSymbol. t6 _ self defaultArgsFor: t1. (#(#E #K #M #S #W ) includes: t4) ifTrue: [^ (self hatBlockType: t4) color: t2]. (t4 includes: $c) ifTrue: [t5 = #doIfElse ifTrue: [t7 _ IfElseBlockMorph new isSpecialForm: true] ifFalse: [t7 _ CBlockMorph new isSpecialForm: true]] ifFalse: [(t4 includes: $r) | (t4 includes: $b) ifTrue: [t7 _ ReporterBlockMorph new] ifFalse: [t7 _ CommandBlockMorph new]]. (t4 includes: $b) ifTrue: [t7 isBoolean: true]. (t4 includes: $s) ifTrue: [t7 isSpecialForm: true]. (t4 includes: $t) ifTrue: [t7 isTimed: true]. (ScriptableScratchMorph isSpriteSpecificTarget: self selector: t5) ifTrue: [t8 _ self] ifFalse: [t8 _ self ownerThatIsA: ScratchStageMorph]. ^ t7 argPermutation: t9; color: t2; selector: t5; commandSpec: t3; defaultArgs: t6; receiver: t8Is That It?
![]()
I tried it and it didn't work.
Offline
SeptimusHeap wrote:
Hello. I'm here.
AN I think he made the last recieved block.
No, I made the <[] received> block, but I'm not sharing it because it will be stolen. Here's a screencast
Offline
nXIII wrote:
SeptimusHeap wrote:
Hello. I'm here.
AN I think he made the last recieved block.No, I made the <[] received> block, but I'm not sharing it because it will be stolen. Here's a screencast
nxiii, By Showing Us That, It Just Makes Us Want To Make It More.
Offline
Anyone Have Any Idea How?
Offline
Billybob-Mario wrote:
I made a (last received) block, but it involved editing the normal broadcast block and adding a new instance variable. It is in Slash.
Billybob-Mario! I Just Noticed, Your (last received) Block, If You Code It Differantly And More Complex, Then You Would Eventually Come Out With The <receive []> Block! The Question Is, HOW Do We Code It Differantly To Make It...
Offline
wow! this is some selfish business nXIII! i'm gonna make it then!
and remember that you'll have to make the Panther code avialable to everyone...
Offline
LS97 wrote:
wow! this is some selfish business nXIII! i'm gonna make it then!
and remember that you'll have to make the Panther code avialable to everyone...
Not true. They haven't done that with BYOB, though jens is going to release the source code, because he wants to!
Offline
markyparky56 wrote:
LS97 wrote:
wow! this is some selfish business nXIII! i'm gonna make it then!
and remember that you'll have to make the Panther code avialable to everyone...Not true. They haven't done that with BYOB, though jens is going to release the source code, because he wants to!
I have to email him about this... I may need to have some legal backing for withholding the source, as it appears to violate the ToS
Offline