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

#1 2011-03-02 09:19:47

Rexpup
Scratcher
Registered: 2010-10-17
Posts: 100+

Answer block update needed.

Recently my cousin Joshua was playing with my pig-latin translator, and he put it into an endless loop accidentally.  This happened because he didn't type anything into the question block, and presssed the check mark button.  I am guessing that this is due to Scratch continually trying to retreive an answer that dosen't exist.  No, I was thinking that there could be a default answer for Sratch 2.0, such as "Null", "Nil", or "Nothing".  Then, maybe the enless loop won't happen.  Also, if you would like to try to re-create the error then go here.

Last edited by Rexpup (2011-03-02 09:20:14)


http://i.imgur.com/QQH4J.gif

Offline

 

#2 2011-03-02 09:23:31

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Answer block update needed.

Just check if it blank first.  wink

Offline

 

#3 2011-03-02 17:41:41

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Answer block update needed.

It doesn't seem to do that for me. Is this only online?


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#4 2011-03-02 23:20:10

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Answer block update needed.

A default answer wouldn't stop the problem; the default text could always be deleted.  hmm

The best thing to do is to add in a script to the project that'll check for an answer - if the answer's blank, it can re-ask the question.

Last edited by Jonathanpb (2011-03-02 23:20:30)


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#5 2011-03-07 12:16:51

Rexpup
Scratcher
Registered: 2010-10-17
Posts: 100+

Re: Answer block update needed.

Jonathanpb wrote:

A default answer wouldn't stop the problem; the default text could always be deleted.  hmm

The best thing to do is to add in a script to the project that'll check for an answer - if the answer's blank, it can re-ask the question.

Yeah, like that!  I think that it should do that automaticly. That would be cool.

Last edited by Rexpup (2011-03-07 18:02:42)


http://i.imgur.com/QQH4J.gif

Offline

 

#6 2011-03-13 16:46:32

vivekpthomas
New Scratcher
Registered: 2011-02-17
Posts: 1

Re: Answer block update needed.

This needs to be fixed. It will be the world's downfall.

Offline

 

#7 2011-03-13 17:25:03

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: Answer block update needed.

It seems like this:

[if (answer) = []]
[][report [null]
[endif]

You want something like that built in?


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#8 2011-03-17 09:15:42

Rexpup
Scratcher
Registered: 2010-10-17
Posts: 100+

Re: Answer block update needed.

bbbeb wrote:

It seems like this:

[if (answer) = []]
[][report [null]
[endif]

You want something like that built in?

Yes. Yes I do.


http://i.imgur.com/QQH4J.gif

Offline

 

Board footer