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

#1 2011-08-06 20:45:31

Dinoclor
Scratcher
Registered: 2010-06-10
Posts: 1000+

Block coding help pleez!

I am trying to put some blocks into my Scratch 1.4 image (source code), and I know where to put the Blockspec, but I have no idea where to put the code that makes the block do something. Please help  smile


This is a temporary signature. It will exist until I think of something witty.

Offline

 

#2 2011-08-06 20:49:09

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

Re: Block coding help pleez!

Two questions:
What category is the block in?
Is the block meant to be used by a sprite, the stage, or both?

Offline

 

#3 2011-08-06 20:54:11

Dinoclor
Scratcher
Registered: 2010-06-10
Posts: 1000+

Re: Block coding help pleez!

Greenatic wrote:

Two questions:
What category is the block in?
Is the block meant to be used by a sprite, the stage, or both?

The sprite.
Looks.


This is a temporary signature. It will exist until I think of something witty.

Offline

 

#4 2011-08-06 21:08:24

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

Re: Block coding help pleez!

Dinoclor wrote:

Greenatic wrote:

Two questions:
What category is the block in?
Is the block meant to be used by a sprite, the stage, or both?

The sprite.
Looks.

OK, open the browser and go to Scratch-Objects > ScratchSpriteMorph > looks ops.

You'll see the following "code":

Code:

message selector and argument names
    "comment stating purpose of message"

    | temporary variable names |
    statements

Replace this with your code and save.   smile

Offline

 

#5 2011-08-06 22:53:51

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: Block coding help pleez!

Greenatic wrote:

Two questions:
What category is the block in?
Is the block meant to be used by a sprite, the stage, or both?

The ops aren't important. For all I care it could go in motion ops.


I am currently http://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=imagehttp://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=text and I finally got over 1000 posts.

Offline

 

Board footer