Pages: 1
Topic closed
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
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
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.
Offline
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.
Offline
Topic closed
Pages: 1