This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Advanced Topics
  •  » Let's Put Our Heads Together To Improve Panther's <receive []> Block!

#1 2010-05-09 17:28:34

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Let's Put Our Heads Together To Improve Panther's <receive []> Block!

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.  big_smile

Last edited by TheGameMaster1231 (2010-05-19 18:14:41)

Offline

 

#2 2010-05-09 18:03:40

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Let's Put Our Heads Together To Improve Panther's <receive []> Block!

W00t! I'll do ut when I get home.

Anyone have the code for the

When I receive ___ block?


http://i46.tinypic.com/dw7zft.png

Offline

 

#3 2010-05-09 18:19:11

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Re: Let's Put Our Heads Together To Improve Panther's <receive []> Block!

SeptimusHeap wrote:

W00t! I'll do ut when I get home.

Woohoo! Yay!  big_smile

Offline

 

#4 2010-05-09 18:22:43

Billybob-Mario
Scratcher
Registered: 2008-01-05
Posts: 500+

Re: Let's Put Our Heads Together To Improve Panther's <receive []> Block!

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

 

#5 2010-05-09 19:28:09

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Re: Let's Put Our Heads Together To Improve Panther's <receive []> Block!

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 broadcastedsmile

Offline

 

#6 2010-05-09 21:50:36

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

Re: Let's Put Our Heads Together To Improve Panther's <receive []> Block!

LOL I just made this... it was really easy.


nXIII

Offline

 

#7 2010-05-10 06:58:25

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Re: Let's Put Our Heads Together To Improve Panther's <receive []> Block!

nXIII wrote:

LOL I just made this... it was really easy.

You MADE IT!?!? How How How How How How HOW!?!?

Edit: HOW!?!? (Lol.  tongue  )

Last edited by TheGameMaster1231 (2010-05-10 07:59:14)

Offline

 

#8 2010-05-10 08:00:30

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Re: Let's Put Our Heads Together To Improve Panther's <receive []> Block!

Hello!?!? Anybody Here!?!? HELLO!?!? ANYBODY!?!?

Offline

 

#9 2010-05-10 08:01:41

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Let's Put Our Heads Together To Improve Panther's <receive []> Block!

Hello. I'm here.

AN I think he made the last recieved block.


http://i46.tinypic.com/dw7zft.png

Offline

 

#10 2010-05-10 08:08:46

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Re: Let's Put Our Heads Together To Improve Panther's <receive []> Block!

SeptimusHeap wrote:

Hello. I'm here.

AN I think he made the last recieved block.

Hi!

Oh.

tongue

Lol.

Huh?

This

Is

Getting

A

(Lol.)

Bit

Annoying.

Ok,

I'll

Stop.

big_smile

Ok, Well Anyway, Can You Try To Make It Work Now?  smile

Last edited by TheGameMaster1231 (2010-05-10 08:10:35)

Offline

 

#11 2010-05-10 08:14:07

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Let's Put Our Heads Together To Improve Panther's <receive []> Block!

I need the code for the 'When I recieve ___' block...


http://i46.tinypic.com/dw7zft.png

Offline

 

#12 2010-05-10 08:22:09

meew0
Scratcher
Registered: 2010-02-22
Posts: 1000+

Re: Let's Put Our Heads Together To Improve Panther's <receive []> Block!

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.


http://i.imgur.com/mJV3j.pnghttp://i.imgur.com/HwWAX.pnghttp://i.imgur.com/sZ7Ui.pnghttp://i.imgur.com/0y6yh.pnghttp://i.imgur.com/nOC4l.png

Offline

 

#13 2010-05-10 08:40:49

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Let's Put Our Heads Together To Improve Panther's <receive []> Block!

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.


http://i46.tinypic.com/dw7zft.png

Offline

 

#14 2010-05-10 08:45:28

meew0
Scratcher
Registered: 2010-02-22
Posts: 1000+

Re: Let's Put Our Heads Together To Improve Panther's <receive []> Block!

('when I receive %e' #E #-)

The #- at the end means it has no code.


http://i.imgur.com/mJV3j.pnghttp://i.imgur.com/HwWAX.pnghttp://i.imgur.com/sZ7Ui.pnghttp://i.imgur.com/0y6yh.pnghttp://i.imgur.com/nOC4l.png

Offline

 

#15 2010-05-10 15:51:54

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Re: Let's Put Our Heads Together To Improve Panther's <receive []> Block!

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: t8

Is That It?  hmm

Offline

 

#16 2010-05-10 16:00:44

Sparkyasa
Scratcher
Registered: 2008-06-27
Posts: 24

Re: Let's Put Our Heads Together To Improve Panther's <receive []> Block!

How did you get so many lines on your signature?


http://internetometer.com/image/12201.png

Offline

 

#17 2010-05-10 16:06:04

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Re: Let's Put Our Heads Together To Improve Panther's <receive []> Block!

Sparkyasa wrote:

How did you get so many lines on your signature?

I Used The Spacebar.                                                                                                                                                                                                                       See!?!?  big_smile

Last edited by TheGameMaster1231 (2010-05-10 16:07:05)

Offline

 

#18 2010-05-10 16:22:59

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Let's Put Our Heads Together To Improve Panther's <receive []> Block!

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: t8

Is That It?  hmm

I tried it  and it didn't work.  sad


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#19 2010-05-10 16:36:45

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

Re: Let's Put Our Heads Together To Improve Panther's <receive []> Block!

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

Offline

 

#20 2010-05-10 16:42:12

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Re: Let's Put Our Heads Together To Improve Panther's <receive []> Block!

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.  tongue

Offline

 

#21 2010-05-10 19:36:25

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Re: Let's Put Our Heads Together To Improve Panther's <receive []> Block!

Anyone Have Any Idea How?  hmm

Offline

 

#22 2010-05-10 19:43:12

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Re: Let's Put Our Heads Together To Improve Panther's <receive []> Block!

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...  hmm

Offline

 

#23 2010-05-11 12:22:21

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Let's Put Our Heads Together To Improve Panther's <receive []> Block!

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

 

#24 2010-05-11 13:30:16

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Let's Put Our Heads Together To Improve Panther's <receive []> Block!

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!


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#25 2010-05-11 15:08:56

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

Re: Let's Put Our Heads Together To Improve Panther's <receive []> Block!

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


nXIII

Offline

 
  • Index
  •  » Advanced Topics
  •  » Let's Put Our Heads Together To Improve Panther's <receive []> Block!

Board footer