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

#1 2012-09-08 20:30:21

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

When <> hat block

I think it would be great I have a hat block (like when sprite clicked) thats like this:

When <>
// actually a hat block with a boolean insert
This would be better (I think) than this:
When gf clicked
Forever
If <>
Why is this? It reduces lag because it wouldnt need a continuously running script. You just insert a boolean (sensing blocks mainly)  and when the statement is true it performs the script. So for example:
When <touching [sprite 2 v]>
Move (4) steps

Offline

 

#2 2012-09-08 20:32:40

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

Re: When <> hat block

when gf clicked
wait until <>


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

 

#3 2012-09-08 21:01:42

dvd4
Scratcher
Registered: 2010-06-30
Posts: 1000+

Re: When <> hat block

It ain't never no not so simple

Last edited by dvd4 (2012-09-09 19:22:17)


I made a mod  big_smile  It's called blook!
http://i49.tinypic.com/16ia63p.png

Offline

 

#4 2012-09-09 06:49:46

xJira
Scratcher
Registered: 2012-03-24
Posts: 91

Re: When <> hat block

Support, would make things a lot easier sometimes

Offline

 

#5 2012-09-09 17:26:54

thebriculator
Scratcher
Registered: 2011-07-11
Posts: 500+

Re: When <> hat block

If there was this block, people could say

When <1=1>

i.e.

When <[1]=[1]>
and the script would always be running. You could never stop it.

I don't support


.     http://tiny.cc/2cwgpw    http://tiny.cc/viwgpw    http://tiny.cc/iwwgpw

Offline

 

#6 2012-09-09 17:58:08

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

Re: When <> hat block

thebriculator wrote:

If there was this block, people could say

When <1=1>

i.e.

When <[1]=[1]>
and the script would always be running. You could never stop it.

I don't support

No, it'd be stopped by the stop button or stop all scripts block.


Posts: 20000 - Show all posts

Offline

 

#7 2012-09-09 18:05:26

Tatl
Scratcher
Registered: 2012-09-09
Posts: 37

Re: When <> hat block

thebriculator wrote:

If there was this block, people could say

When <1=1>

i.e.

When <[1]=[1]>
and the script would always be running. You could never stop it.

I don't support

Offline

 

#8 2012-09-09 18:13:40

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

Re: When <> hat block

thebriculator wrote:

If there was this block, people could say

When <1=1>

i.e.

When <[1]=[1]>
and the script would always be running. You could never stop it.

I don't support

that would be exactly the same as

when gf clicked
forever
do stuff


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

Offline

 

#9 2012-09-09 18:24:03

OverPowered
Scratcher
Registered: 2012-07-27
Posts: 100+

Re: When <> hat block

Would be a nice feature for new Scratchers, but has such an easy workaround that it's not really necessary.  tongue


Newest project: Tunnel TEST ~http://blocks.scratchr.org/API.php?user=OverPowered&amp;action=onlineStatus~ On my mind: Unicameralism

Offline

 

#10 2012-09-09 18:43:06

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

Re: When <> hat block

There is already code for this. Just search around the forums and you'll find 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

 

#11 2012-09-09 18:44:02

taddl
Scratcher
Registered: 2009-03-08
Posts: 100+

Re: When <> hat block

Wes64 wrote:

thebriculator wrote:

If there was this block, people could say

When <1=1>

i.e.

When <[1]=[1]>
and the script would always be running. You could never stop it.

I don't support

that would be exactly the same as

when gf clicked
forever
do stuff

no, because the headblock would restart, even if you stopped the project


http://blocks.scratchr.org/API.php?action=projects&amp;type=newest&amp;return=image&amp;user=taddl
http://blocks.scratchr.org/API.php?user=taddl&amp;action=projects&amp;type=newest&amp;return=text&amp;num=1

Offline

 

#12 2012-09-09 22:22:03

thebriculator
Scratcher
Registered: 2011-07-11
Posts: 500+

Re: When <> hat block

That's right, taddl, @Wes64 and veggieman001

whenever you stopped the project, the hat block would become active again

Last edited by thebriculator (2012-09-09 22:22:14)


.     http://tiny.cc/2cwgpw    http://tiny.cc/viwgpw    http://tiny.cc/iwwgpw

Offline

 

#13 2012-09-09 23:57:27

Tatl
Scratcher
Registered: 2012-09-09
Posts: 37

Re: When <> hat block

thebriculator wrote:

That's right, taddl, @Wes64 and veggieman001

Well that's confusing.

Offline

 

#14 2012-09-10 04:29:16

taddl
Scratcher
Registered: 2009-03-08
Posts: 100+

Re: When <> hat block

Tatl wrote:

thebriculator wrote:

That's right, taddl, @Wes64 and veggieman001

Well that's confusing.

lol


http://blocks.scratchr.org/API.php?action=projects&amp;type=newest&amp;return=image&amp;user=taddl
http://blocks.scratchr.org/API.php?user=taddl&amp;action=projects&amp;type=newest&amp;return=text&amp;num=1

Offline

 

#15 2012-09-10 05:22:27

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: When <> hat block

You're right, it would start again even after stop all. O.o


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#16 2012-09-10 14:47:06

dvd4
Scratcher
Registered: 2010-06-30
Posts: 1000+

Re: When <> hat block

taddl wrote:

Tatl wrote:

thebriculator wrote:

That's right, taddl, @Wes64 and veggieman001

Well that's confusing.

lol


I made a mod  big_smile  It's called blook!
http://i49.tinypic.com/16ia63p.png

Offline

 

#17 2012-09-11 13:31:18

BirdByte
Scratcher
Registered: 2012-07-07
Posts: 1000+

Re: When <> hat block

Some mods have this.

Just use

when gf clicked
forever
 wait until <whatever>
 whatever
end


http://i50.tinypic.com/312u714.jpg

Offline

 

#18 2012-09-11 15:12:05

legobob23o
Scratcher
Registered: 2012-06-22
Posts: 500+

Re: When <> hat block

Nice suggestion! I support.  smile   smile   smile

Offline

 

Board footer