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

#1 2010-04-19 13:03:51

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

Atention all 1-sprite 1-scripters

There are quite a few 1s1s projects out there. Problem is, nobody can remix them. In Scratch, every script can only be so long before it 'breaks off', and becomes uneditable. To cope with this, you could break up the script into induvidual sections. You could do something like this:
[blocks]
<when green flag clicked>
(some stuff here...)

<broadcast[ 1

<when I receive[ 1
(some more stuff here...)

<broadcast[ 2

etc.

Or, you could do something like this:

<when green flag clicked>
<forever>
<broadcast[ 1 ]and wait c>
<broadcast[ 2 ]and wait c>
<end>

<when I receive[ 1
(some stuff here...)

<when I receive[ 2
(some more stuff here...)

etc.
[/blocks]
I know that this technically wouldn't be a 1 script project, but it's a virtual 1 script project, because it acts the same way.

If you don't understand or have a question, just post it!  smile


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

Offline

 

#2 2011-03-12 13:04:20

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: Atention all 1-sprite 1-scripters

The whole point of 1s1s projects is that they have one sprite and one script.


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#3 2011-03-12 13:24:39

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

Re: Atention all 1-sprite 1-scripters

The disadvantage of this is that the script no longer executes in one frame.


nXIII

Offline

 

#4 2011-03-12 13:53:21

floppy_gunk
Scratcher
Registered: 2008-11-14
Posts: 500+

Re: Atention all 1-sprite 1-scripters

However, that could be useful when making a 1s1s. You could break it up into parts, and stick it together at the end.


http://img163.imageshack.us/img163/1917/2856lg.jpg Get it now!  smile

Offline

 

#5 2011-03-12 14:49:17

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: Atention all 1-sprite 1-scripters

Good Idea... I'll try it.  cool


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

Board footer