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

#1 2009-11-26 18:21:14

ProjectFunnyBoy
Scratcher
Registered: 2009-11-26
Posts: 34

Make an "unless" block in scratch

Sometimes I feel it would be convenient to place an "unless" block in scratch, for example in this scenario
--
-When green flag clicked-
|
-Forever if <touching enemy sprite>-
-unless <invincibility> = <1>-
--say "lose" <2> seconds --
--stop all--
--
See how convenient?
Oh yes, and
--
-When green flag clicked-
-if touching red-
-unless (background) = (red)-
--stop all--


Workers of the scratch, unite -- Join the Scratcher's Communist Revolution!
"The history of all hitherto existing society is the history of class struggles" -- Karl Marx

Offline

 

#2 2009-11-26 18:23:42

somelia
Scratcher
Registered: 2009-09-13
Posts: 1000+

Re: Make an "unless" block in scratch

That would be awesome! I support this idea.

Offline

 

#3 2009-11-26 18:25:42

06dknibbs
Scratcher
Registered: 2008-01-29
Posts: 1000+

Re: Make an "unless" block in scratch

This can already be done with a simple workaround, but it would be pretty useful  smile

Workaround =  If, Not, Invincibility = 1.


http://i404.photobucket.com/albums/pp129/06dknibbs/Untitled-3-6.jpg

Offline

 

#4 2009-11-26 18:27:37

ProjectFunnyBoy
Scratcher
Registered: 2009-11-26
Posts: 34

Re: Make an "unless" block in scratch

But this would make stuff easy without even a simple workaround. So this would be kinda cool.


Workers of the scratch, unite -- Join the Scratcher's Communist Revolution!
"The history of all hitherto existing society is the history of class struggles" -- Karl Marx

Offline

 

#5 2009-11-26 18:29:27

adriangl
Scratcher
Registered: 2007-07-02
Posts: 1000+

Re: Make an "unless" block in scratch

<if><<  <not>  >><9<{ invincibility }>  <=> 0 )>


Scratchin' since 2007

Offline

 

#6 2009-11-26 18:31:23

ProjectFunnyBoy
Scratcher
Registered: 2009-11-26
Posts: 34

Re: Make an "unless" block in scratch

I know, but . . . Um . . . still! There are more situations that I'm too lazy to write down! And some beginners could use that!


Workers of the scratch, unite -- Join the Scratcher's Communist Revolution!
"The history of all hitherto existing society is the history of class struggles" -- Karl Marx

Offline

 

#7 2009-11-26 18:32:26

webgal15
Scratcher
Registered: 2009-06-17
Posts: 1000+

Re: Make an "unless" block in scratch

adriangl wrote:

<if><<  <not>  >><9<{ invincibility }>  <=> 0 )>

Imagine it even easier. The unless block.


Now only using this account to post in Miscellaneous, but when Miss_Webgal becomes a Scratcher I'm ditching this account.

Offline

 

#8 2009-11-26 18:35:55

ProjectFunnyBoy
Scratcher
Registered: 2009-11-26
Posts: 34

Re: Make an "unless" block in scratch

Yes, that's exactly what I'm saying! Seriously! Make the unless block! Beginners probably don't realize that combination!


Workers of the scratch, unite -- Join the Scratcher's Communist Revolution!
"The history of all hitherto existing society is the history of class struggles" -- Karl Marx

Offline

 

#9 2009-11-26 18:36:49

webgal15
Scratcher
Registered: 2009-06-17
Posts: 1000+

Re: Make an "unless" block in scratch

Hurray for unless block!


Now only using this account to post in Miscellaneous, but when Miss_Webgal becomes a Scratcher I'm ditching this account.

Offline

 

#10 2009-11-26 18:38:25

ProjectFunnyBoy
Scratcher
Registered: 2009-11-26
Posts: 34

Re: Make an "unless" block in scratch

Yes! Now, everybody who agrees, put this in your signature:

"Scratch needs an unless block"


Workers of the scratch, unite -- Join the Scratcher's Communist Revolution!
"The history of all hitherto existing society is the history of class struggles" -- Karl Marx

Offline

 

#11 2009-11-26 18:38:29

06dknibbs
Scratcher
Registered: 2008-01-29
Posts: 1000+

Re: Make an "unless" block in scratch

I agree, an unless block would make things a lot simpler  smile .


http://i404.photobucket.com/albums/pp129/06dknibbs/Untitled-3-6.jpg

Offline

 

#12 2009-11-26 18:40:31

ProjectFunnyBoy
Scratcher
Registered: 2009-11-26
Posts: 34

Re: Make an "unless" block in scratch

Put it in your signature! Everyone! Hurry! Hurry! We need to tell the scratch team before 1.5 comes out!


Workers of the scratch, unite -- Join the Scratcher's Communist Revolution!
"The history of all hitherto existing society is the history of class struggles" -- Karl Marx

Offline

 

#13 2009-11-26 18:54:00

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Make an "unless" block in scratch

Look, if you're too lazy to make a simple workaround, than... *runs out of ideas for comebacks*. The thing is, there are bigger things, which are possible, but are extremely difficult to do. This is like...nothing. I'm not COMPLETELY against it, but there are more important suggestions at hand.


http://i.imgur.com/WBkM2QQ.png

Offline

 

#14 2009-11-28 11:42:18

scmb1
Scratch Team
Registered: 2009-03-19
Posts: 1000+

Re: Make an "unless" block in scratch

I suppose I wouldn't mind an unless block, but it can be done easily with other blocks, so it isn't at the top of my priorities.

Last edited by scmb1 (2009-11-29 18:44:31)


http://i48.tinypic.com/2z5pqad.png

Offline

 

#15 2009-11-28 11:57:56

DawnLight
Scratcher
Registered: 2009-04-25
Posts: 500+

Re: Make an "unless" block in scratch

ProjectFunnyBoy wrote:

Sometimes I feel it would be convenient to place an "unless" block in scratch, for example in this scenario
--
-When green flag clicked-
|
-Forever if <touching enemy sprite>-
-unless <invincibility> = <1>-
--say "lose" <2> seconds --
--stop all--
--
See how convenient?
Oh yes, and
--
-When green flag clicked-
-if touching red-
-unless (background) = (red)-
--stop all--

Well, ProjectFunnyBoy (AKA Kenji) we won't need the "Unless" block because there is already a "If Touching" block. They both sound different, but when you really think about it... It is the same think. Thanks for trying to help!

Offline

 

#16 2009-11-28 12:09:24

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Make an "unless" block in scratch

DawnLight wrote:

ProjectFunnyBoy wrote:

Sometimes I feel it would be convenient to place an "unless" block in scratch, for example in this scenario
--
-When green flag clicked-
|
-Forever if <touching enemy sprite>-
-unless <invincibility> = <1>-
--say "lose" <2> seconds --
--stop all--
--
See how convenient?
Oh yes, and
--
-When green flag clicked-
-if touching red-
-unless (background) = (red)-
--stop all--

Well, ProjectFunnyBoy (AKA Kenji) we won't need the "Unless" block because there is already a "If Touching" block. They both sound different, but when you really think about it... It is the same think. Thanks for trying to help!

An if touching block? I think you meant to say "Because there is already the combination of an "If" block and a "Not" block".


http://i.imgur.com/WBkM2QQ.png

Offline

 

#17 2009-11-28 14:20:54

Zelda123
Scratcher
Registered: 2007-11-21
Posts: 1000+

Re: Make an "unless" block in scratch

The unLESS block is a useLESS block.  tongue
In fact, it would have a negative effect. It is a block that can be replaced with such an easy substitute and in return shall slow down Scratch even more.

Offline

 

#18 2009-11-28 14:23:29

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Make an "unless" block in scratch

Zelda123 wrote:

The unLESS block is a useLESS block.  tongue
In fact, it would have a negative effect. It is a block that can be replaced with such an easy substitute and in return shall slow down Scratch even more.

Lol yeah.


http://i.imgur.com/WBkM2QQ.png

Offline

 

#19 2009-11-28 14:43:48

NiteHaunt
Scratcher
Registered: 2009-11-21
Posts: 39

Re: Make an "unless" block in scratch

ProjectFunnyBoy wrote:

Sometimes I feel it would be convenient to place an "unless" block in scratch, for example in this scenario
--
-When green flag clicked-
|
-Forever if <touching enemy sprite>-
-unless <invincibility> = <1>-
--say "lose" <2> seconds --
--stop all--
--
See how convenient?
Oh yes, and
--
-When green flag clicked-
-if touching red-
-unless (background) = (red)-
--stop all--

You could just use the IF Block in the command section! big_smile  =p

Offline

 

#20 2009-11-28 14:45:50

NiteHaunt
Scratcher
Registered: 2009-11-21
Posts: 39

Re: Make an "unless" block in scratch

=p

Offline

 

#21 2009-11-28 14:49:27

NiteHaunt
Scratcher
Registered: 2009-11-21
Posts: 39

Re: Make an "unless" block in scratch

ProjectFunnyBoy wrote:

Sometimes I feel it would be convenient to place an "unless" block in scratch, for example in this scenario
--
-When green flag clicked-
|
-Forever if <touching enemy sprite>-
-unless <invincibility> = <1>-
--say "lose" <2> seconds --
--stop all--
--
See how convenient?
Oh yes, and
--
-When green flag clicked-
-if touching red-
-unless (background) = (red)-
--stop all--

No. I agree w/ lucario621. No kidding-if u want this use the if block and not block!  sad

Offline

 

#22 2009-11-28 15:43:20

keikij
Scratcher
Registered: 2009-02-22
Posts: 1000+

Re: Make an "unless" block in scratch

if not invincibility = 1

is the exact same thing as

unless invincibility = 1

It's a pointless block, like forever if.


Back from the Dead (And Stuff)

Offline

 

#23 2009-11-28 15:50:05

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Make an "unless" block in scratch

Like everyone said.  I think the if, not would be more easier than unless. Unless might confuse new users.


Hai.

Offline

 

#24 2009-11-29 13:43:32

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Make an "unless" block in scratch

ProjectFunnyBoy wrote:

Yes! Now, everybody who agrees, put this in your signature:

"Scratch needs an unless block"

I know... But i disagree Example:
If touching enemy and starman is lower than 1, Stop all

is the same as

If touching enemy unless starman is higher than 0, stop all

It is unusefull.

See? try it out.

Last edited by rdococ (2009-11-29 13:58:26)

Offline

 

#25 2009-11-29 13:49:34

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Offline

 

Board footer