If only there was an if "i recieve block"! it would be sooo useful!
Offline
fuzzwuzz wrote:
If only there was an if "i recieve block"! it would be sooo useful!
Me too but until then just use:
<broadcast[ something ]>
<set{ something }to( 1 )>
<if><( <{ something }> <=> 1 )>
Do something
<end>
Offline
It's impossible to make because broadcasts aren't booleans. Don't ask why not, they just aren't...
Use the variable way instead.
Offline
yep, and if youve done alot of broadcasts already do something like
When i receave (BROADCAST1)
var broadcaster = 1
and on the receave script
if(var broadcaster = 1)
broadcaster = 0
do stuff
I got out of the habbit of broadcasts before i went on to flash, which only has variables.
Offline
yambanshee wrote:
yep, and if youve done alot of broadcasts already do something like
When i receave (BROADCAST1)
var broadcaster = 1
and on the receave script
if(var broadcaster = 1)
broadcaster = 0
do stuff
I got out of the habbit of broadcasts before i went on to flash, which only has variables.
Flash lets you use functions which are far more useful.
Offline
as arch said .
a bit of topic but, arch, finaly got the shapeflag working made a great rpg run around styled game with power ups and all . anyways, back on topic.
I find it odd that broadcasts arent boolean. Mabye the scratch team should rethink the way a broad cast and receve works, and use booleans for 1.4
Offline
archmage wrote:
yambanshee wrote:
yep, and if youve done alot of broadcasts already do something like
When i receave (BROADCAST1)
var broadcaster = 1
and on the receave script
if(var broadcaster = 1)
broadcaster = 0
do stuff
I got out of the habbit of broadcasts before i went on to flash, which only has variables.Flash lets you use functions which are far more useful.
But flash isn't free...
Offline
onedudeuk wrote:
archmage wrote:
yambanshee wrote:
yep, and if youve done alot of broadcasts already do something like
When i receave (BROADCAST1)
var broadcaster = 1
and on the receave script
if(var broadcaster = 1)
broadcaster = 0
do stuff
I got out of the habbit of broadcasts before i went on to flash, which only has variables.Flash lets you use functions which are far more useful.
But flash isn't free...
but you can make money from flash, and not with scratch
lets get back on topic though
Offline
The If I recieve block would be very useful becase it would make THe files smaller.
Offline
well the blocks that have the points( < something > ) are booleans.. so
that meens
if (I receive[something])
would mean
if <true/false> is true
execute this code...
so maybe it is possible
Last edited by techy (2009-02-01 17:57:17)
Offline
apparently receave blocks arent boolean, but i have yet to hear that from the mouths of the scratch team
Offline
yambanshee wrote:
onedudeuk wrote:
archmage wrote:
Flash lets you use functions which are far more useful.
But flash isn't free...
but you can make money from flash, and not with scratch
lets get back on topic though
How can you possibly make money with flash?!
Offline