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

#1 2011-02-21 19:38:32

Squawkers13
Scratcher
Registered: 2010-11-20
Posts: 500+

Penguin Paradise Block Project: blockSpecs and instance ops

Hi. this forum is a place to talk about new Scratch blocks and their code. i have provided some starters.


http://pekkit.net/banners/pekkit.png

Offline

 

#2 2011-02-21 19:54:07

Squawkers13
Scratcher
Registered: 2010-11-20
Posts: 500+

Re: Penguin Paradise Block Project: blockSpecs and instance ops

henley wrote:

pwiter wrote:

henley wrote:


In which ops you put the code doesn't matter. It was just created for organization.

OK I tried that and it said, unknown variable: t1

Okay, if you REALLY REALLY REALLY REALLY want to know.  I will give you the WHOLE tutorial!

Step 1: Open the system browser

Step 2: Go to the block specs

Step 3: Enter the block spec:

if in the nonsource version:

Code:

('link to %s' #- #linkTo: 'http://scratch.mit.edu/')

if in the source version:

Code:

('link to %s'     -     linkTo: 'http://scratch.mit.edu/')

Step 4: Enter the code for the block in 'other ops'.

Step 5: The code being:

Code:

linkTo: t1

    Cursor wait showWhile: [ScratchPlugin primOpenURL: t1]

Is there anything else?


http://pekkit.net/banners/pekkit.png

Offline

 

#3 2011-02-21 23:13:49

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: Penguin Paradise Block Project: blockSpecs and instance ops

Hello, you might want to look at the iTopics and other forum poses before making your own.  big_smile

Look for spark's block library, as that is pretty much the same thing.


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

Board footer