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

#1 2010-05-17 18:53:56

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

Does anyone know how to edit the way a project looks online?

Self explanatory.


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

Offline

 

#2 2010-05-17 18:56:35

Greenboi
Scratcher
Registered: 2010-01-30
Posts: 1000+

Re: Does anyone know how to edit the way a project looks online?

rubiks_cube_guy238 wrote:

Self explanatory.

Which parts?

60 seconds
60 second
60 secon
60 seco
60 sec
60 se
60 s
60
6
....

Offline

 

#3 2010-05-17 19:13:15

songhead95
Scratcher
Registered: 2008-03-19
Posts: 100+

Re: Does anyone know how to edit the way a project looks online?

How do you change how your car looks on a Wednesday?

Offline

 

#4 2010-05-17 19:23:48

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

Re: Does anyone know how to edit the way a project looks online?

Make An Online Sensor Like This:

[blocks]<when green flag clicked>
<set{ online?  }to( no
<move( (( 0  <*> 0  )) )steps>
<set{  online?  }to( yes [/blocks]

Then Do Like:

[blocks]<if><(  <{ online?  }> =  yes )>

do something

<else>

do something else

<end>[/blocks]

Hope This Helps!  big_smile

Last edited by TheGameMaster1231 (2010-05-17 19:29:29)

Offline

 

#5 2010-05-17 19:33:14

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Does anyone know how to edit the way a project looks online?

TheGameMaster1231 wrote:

Make An Online Sensor Like This:

[blocks]<when green flag clicked>
<set{ online?  }to( no
<move( (( 0  <*> 0  )) )steps>
<set{  online?  }to( yes [/blocks]

...

How does that work?

Last edited by coolstuff (2010-05-17 19:33:33)

Offline

 

#6 2010-05-17 19:38:37

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

Re: Does anyone know how to edit the way a project looks online?

coolstuff wrote:

TheGameMaster1231 wrote:

Make An Online Sensor Like This:

[blocks]<when green flag clicked>
<set{ online?  }to( no
<move( (( 0  <*> 0  )) )steps>
<set{  online?  }to( yes [/blocks]

...

How does that work?

Offline Can't Do 0 * 0 And Gives An Error So It Wouldn't Get To set online to yes And Would Be Stuck With No. But Online Ignores Errors Like That And Would Continue Onto set online? to yes.  smile  (A Bit Confusing, Isn't It?)

Last edited by TheGameMaster1231 (2010-05-17 19:39:41)

Offline

 

#7 2010-05-17 19:51:41

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

Re: Does anyone know how to edit the way a project looks online?

TheGameMaster1231 wrote:

coolstuff wrote:

TheGameMaster1231 wrote:

Make An Online Sensor Like This:

[blocks]<when green flag clicked>
<set{ online?  }to( no
<move( (( 0  <*> 0  )) )steps>
<set{  online?  }to( yes [/blocks]

...

How does that work?

Offline Can't Do 0 * 0 And Gives An Error So It Wouldn't Get To set online to yes And Would Be Stuck With No. But Online Ignores Errors Like That And Would Continue Onto set online? to yes.  smile  (A Bit Confusing, Isn't It?)

Um.... that's my online sensor, and it's 0/0, not 0*0. The thing is, the Java player ignores errors, whereas Squeak just highlights the block in red and stops the script.


nXIII

Offline

 

#8 2010-05-18 07:36:12

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Does anyone know how to edit the way a project looks online?

nXIII wrote:

TheGameMaster1231 wrote:

coolstuff wrote:


How does that work?

Offline Can't Do 0 * 0 And Gives An Error So It Wouldn't Get To set online to yes And Would Be Stuck With No. But Online Ignores Errors Like That And Would Continue Onto set online? to yes.  smile  (A Bit Confusing, Isn't It?)

Um.... that's my online sensor, and it's 0/0, not 0*0. The thing is, the Java player ignores errors, whereas Squeak just highlights the block in red and stops the script.

I see - ingenious! I've found the contrary to be true when dealing with lists, however: Java stops the script if you try to access a list item that doesn't exist, Squeak highlights the list in red then continues on.

Offline

 

#9 2010-05-18 14:30:59

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

Re: Does anyone know how to edit the way a project looks online?

coolstuff wrote:

nXIII wrote:

TheGameMaster1231 wrote:

Offline Can't Do 0 * 0 And Gives An Error So It Wouldn't Get To set online to yes And Would Be Stuck With No. But Online Ignores Errors Like That And Would Continue Onto set online? to yes.  smile  (A Bit Confusing, Isn't It?)

Um.... that's my online sensor, and it's 0/0, not 0*0. The thing is, the Java player ignores errors, whereas Squeak just highlights the block in red and stops the script.

I see - ingenious! I've found the contrary to be true when dealing with lists, however: Java stops the script if you try to access a list item that doesn't exist, Squeak highlights the list in red then continues on.

HA! I never noticed that...
Yes, there are a lot of different online "sensor" script hacks, some more easily understandable than others; for example, I've even seen a graphics hack with color sensing that tells if the sprite is online! I like this one, though, because it is relatively compact and 1s1s (and I made it  wink  )

Last edited by nXIII (2010-05-18 14:31:14)


nXIII

Offline

 

#10 2010-05-18 15:49:47

cds56
Scratcher
Registered: 2008-05-02
Posts: 500+

Re: Does anyone know how to edit the way a project looks online?

It is a good online sensor, although I could only see a practical reason being compatability. So it'd work better online with one script and better offline with the other.


http://img192.imageshack.us/img192/909/meowdevlogo.pnghttp://i32.tinypic.com/pucti.png

Offline

 

#11 2010-05-18 16:53:45

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

Re: Does anyone know how to edit the way a project looks online?

Special broadcasts only work offline. Instead of saying [blocks] <when green flag clicked> [/blocks] say [blocks] <when I receive[ Scratch-StartClicked ]> [/blocks]

Offline

 

#12 2010-05-18 17:09:54

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

Re: Does anyone know how to edit the way a project looks online?

Billybob-Mario wrote:

Special broadcasts only work offline. Instead of saying [blocks] <when green flag clicked> [/blocks] say [blocks] <when I receive[ Scratch-StartClicked ]> [/blocks]

Good Call... I Forgot About That One...

Offline

 

#13 2010-05-18 18:34:43

infinitum3d
Scratcher
Registered: 2009-05-10
Posts: 100+

Re: Does anyone know how to edit the way a project looks online?

Billybob-Mario wrote:

Special broadcasts only work offline.

What do you mean SPECIAL broadcasts? I didn't know there were different kinds of broadcasts.

Offline

 

#14 2010-05-18 19:15:44

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: Does anyone know how to edit the way a project looks online?

Billybob-Mario wrote:

Special broadcasts only work offline. Instead of saying [blocks] <when green flag clicked> [/blocks] say [blocks] <when I receive[ Scratch-StartClicked ]> [/blocks]

That gives me an Idea for my OS...


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

Board footer