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

#1 2009-03-17 16:18:12

qlmaX5
Scratcher
Registered: 2009-02-27
Posts: 4

Scratch OS projects, variables VS Broadcast, and file upload limit

So, I've been using Scratch for a while, and have been working on a huge scratch project. I have several loops that can use either Broadcasts or SetVariable. I know some of the perks of both, but what are the things you use each for?

Also, I know right now this isn't going to be updated, but my WIP project is a good 13 MB. Should I post a small demo of a clone of the controls and apps?  :P

Offline

 

#2 2009-03-18 14:06:20

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: Scratch OS projects, variables VS Broadcast, and file upload limit

as for variables V broadcasts, i think variables will have smaller file size, and run better then broadcasts. In general, variables are always the better, but SOMETIMES more advance way of going.

Offline

 

#3 2009-03-18 14:10:18

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Scratch OS projects, variables VS Broadcast, and file upload limit

Broadcasts send a message and variables store data, they have different uses. The only thing I can recommend is that you don't over use broadcasts and use variables when necessary.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#4 2009-04-08 20:51:27

qlmaX5
Scratcher
Registered: 2009-02-27
Posts: 4

Re: Scratch OS projects, variables VS Broadcast, and file upload limit

The main differences between Variables and broadcasts, I found, is that Variables need more, if just one more, block, because for variables, you need to do this:
[blocks]
<when green flag clicked><if><( <{ var }> <=> x )><turn cw( 17 )degrees>
[/blocks]
Meanwhile, you can do this for broadcasts:
<when I receive[ bullsharks ]><turn cw( 17 )degrees>

Or, more to-the-point, Variables are better for constant measuring or changing, and broadcasts are used for changing single things.   tongue

Offline

 

Board footer