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

#1 2012-12-18 17:34:02

turkey3
Scratcher
Registered: 2011-12-04
Posts: 500+

When <> hat block

I suggested this before but I'm making this more clear. In this block

if <>
The <> after "if" would be great if you had that in a "When <>" hat block. This hat block would be capable  of having any Boolean inserted into it. What's the difference in this and
When gf clicked
Forever if <>
The difference is that the script above must always be running to report true. That can cause a lot of lag. This is almost like the same thing:
When [sprite 1 v] clicked
And
When gf clicked
Forever if <<mouse down> and <touching [sprite 1 v]>>
See what I mean? The first one is more efficient because the script doesn't run until the statement is true.

I think a When <> hat block would be great!

Last edited by turkey3 (2012-12-18 17:35:39)

Offline

 

#2 2012-12-18 18:49:30

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: When <> hat block

workaround

when gf clicked
forever
wait until <(conditions)=[true]>
perform script


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#3 2012-12-18 18:52:30

fillergames
Scratcher
Registered: 2012-10-15
Posts: 1000+

Re: When <> hat block

Wes64 wrote:

workaround

when gf clicked
forever
wait until <(conditions)=[true]>
perform script

Such an easy workaround.


http://i50.tinypic.com/2ufvxc5_th.gif Grammer? Whats grammar?

Offline

 

#4 2012-12-18 19:03:38

Mokat
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: When <> hat block

there used to be one in 1.2 or 1.3 i think, but it was removed


http://www.eggcave.com/egg/977371.pnghttp://www.eggcave.com/egg/977376.pnghttp://www.eggcave.com/egg/1005291.pnghttp://www.eggcave.com/egg/996745.png

Offline

 

#5 2012-12-18 19:14:24

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: When <> hat block

Mokat wrote:

there used to be one in 1.2 or 1.3 i think, but it was removed

I can't find any record of this; what's your source?


Posts: 20000 - Show all posts

Offline

 

#6 2012-12-18 19:17:56

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: When <> hat block

It's in lots of mods (such as Insanity), if you want it.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#7 2012-12-18 19:59:42

fillergames
Scratcher
Registered: 2012-10-15
Posts: 1000+

Re: When <> hat block

jvvg wrote:

It's in lots of mods (such as Insanity), if you want it.

Whats the point if its easy to workaround?


http://i50.tinypic.com/2ufvxc5_th.gif Grammer? Whats grammar?

Offline

 

#8 2012-12-18 20:13:45

777w
Scratcher
Registered: 2009-02-10
Posts: 1000+

Re: When <> hat block

veggieman001 wrote:

Mokat wrote:

there used to be one in 1.2 or 1.3 i think, but it was removed

I can't find any record of this; what's your source?

ive seen it in obsolete block projects but it doest really work at all
they added this weird "when [loudness v] > (10)" block to 2.0 but a "when <>" hat would be a lot more simple and useful
the way i understand it this block would work regardless of whether or not you clicked the green flag which means the proposed workaround wouldnt have the same effect

Offline

 

Board footer