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

#1 2010-05-08 14:22:40

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

Hackers, I Need Some Help, And QUICK.

Ok, Hackers, I Need Help With Something. The Code For The ([when i receive []]) Block Is ('when i receive %e' #E #-) But Where Do I Find The Place That Makes #E Function? I Need This Information, And If You Think HARD, You'll See Why. But Anyway, Please Tell Me Where To Find It! Thank You!  big_smile

Offline

 

#2 2010-05-08 14:37:38

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

Re: Hackers, I Need Some Help, And QUICK.

um... ScriptableScratchMorph hatBlockType:color:


nXIII

Offline

 

#3 2010-05-08 15:57:57

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

Re: Hackers, I Need Some Help, And QUICK.

nXIII wrote:

um... ScriptableScratchMorph hatBlockType:color:

Thanks! I Was Gonna Try To Use This To Make The <receive []> Block, But It Just Makes That Red Outline Appear. (No Error Or Anything!) I Might Succeed Later In Making It Work.  big_smile

Last edited by TheGameMaster1231 (2010-05-08 16:04:56)

Offline

 

#4 2010-05-08 17:39:40

Enzo1997
Scratcher
Registered: 2008-06-14
Posts: 500+

Re: Hackers, I Need Some Help, And QUICK.

Yay For Helpfulness!!!


Your music tastes are bad, therefore your argument is irrelevant.

Offline

 

#5 2010-05-09 08:52:07

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

Re: Hackers, I Need Some Help, And QUICK.

Enzo1997 wrote:

Yay For Helpfulness!!!

Yay For This Post! XD

Offline

 

#6 2010-05-09 08:55:09

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

Re: Hackers, I Need Some Help, And QUICK.

Give me the code, I might be able to work it.


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

Offline

 

#7 2010-05-09 16:37:28

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

Re: Hackers, I Need Some Help, And QUICK.

SeptimusHeap wrote:

Give me the code, I might be able to work it.

Woo! Finally, After All This Time! Somebody Actually Decides To Make It!  big_smile  Ok, Well The Code For #E To Function Is...

Code:

'E' = t1
        ifTrue: 
            [t3 _ ''.
            (t2 _ self ownerThatIsA: ScratchStageMorph) ifNotNil: [t3 _ t2 defaultEventName].
            ^ EventHatMorph new scriptOwner: self;
             eventName: t3].

Tell Me If You Make It Work!  smile

Last edited by TheGameMaster1231 (2010-05-09 16:38:26)

Offline

 

#8 2010-05-09 16:50:57

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

Re: Hackers, I Need Some Help, And QUICK.

Uh, you know that's just for a hat block?


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

Offline

 

#9 2010-05-09 17:17:13

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

Re: Hackers, I Need Some Help, And QUICK.

SeptimusHeap wrote:

Uh, you know that's just for a hat block?

What Code Do You Want? I Thought You Wanted That Code.  hmm
And Yes, I Do Know That.

Last edited by TheGameMaster1231 (2010-05-09 17:21:17)

Offline

 

#10 2010-05-09 17:28:07

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: Hackers, I Need Some Help, And QUICK.

Okay. You have this ALL WRONG. hatBlockType:color: isn't what makes the hat block work. All it does is add the hat block to the block palette. There is a long sequence of commands that make the hat block work.


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#11 2010-05-09 17:31:37

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

Re: Hackers, I Need Some Help, And QUICK.

rubiks_cube_guy238 wrote:

Okay. You have this ALL WRONG. hatBlockType:color: isn't what makes the hat block work. All it does is add the hat block to the block palette. There is a long sequence of commands that make the hat block work.

um... OK then... your point is? Are you talking about evaluation of the hat block? If so, it's just a separate class...


nXIII

Offline

 

#12 2010-05-09 17:32:06

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

Re: Hackers, I Need Some Help, And QUICK.

Everyone That's Helping With The <receive []> Block Here, I Have Opened A New Forum For This. Continue Discussing It At http://scratch.mit.edu/forums/viewtopic.php?id=35477  big_smile

Offline

 

Board footer