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

#1 2010-08-28 22:19:21

pwiter
Scratcher
Registered: 2010-06-02
Posts: 100+

I have a problem!

Ok, so I'm trying to make a scratch programming language, I got the base running, but I want to make it so that when someone types a mistake and runs it, the screen will turn black and say error.
HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! sad
(i hope scratchreallyrocks comes)


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

Offline

 

#2 2010-08-28 23:06:10

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: I have a problem!

How you do this depends on what you want the user to type in... Could you define this in a little more detail?  smile

Also, you didn't get SRR. You got ME instead. So deal with it.  tongue


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#3 2010-08-28 23:08:23

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: I have a problem!

Like Jwosty pointed out, it really depends on how your project is running. You could upload the project here for somebody to look at, or post the scripts here and somebody may be able to take a look and figure out how to do that.

Thanks!

Offline

 

#4 2010-08-29 09:03:32

pwiter
Scratcher
Registered: 2010-06-02
Posts: 100+

Re: I have a problem!

what i mean is, that someone types in a code that is unknown to the system it turns the screen black and says error


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

Offline

 

#5 2010-08-29 09:06:10

calebxy
Scratcher
Registered: 2009-12-31
Posts: 1000+

Re: I have a problem!

Maybe... list all the things that it is known to the system, and do an Else: (Turn the screen black and says error.)


I'm making my own Doctor Who series!  big_smile  See the first episode here.
And please join Story Zone!  big_smile

Offline

 

#6 2010-08-29 09:17:36

samurai768
Scratcher
Registered: 2009-07-21
Posts: 1000+

Re: I have a problem!

calebxy wrote:

Maybe... list all the things that it is known to the system, and do an Else: (Turn the screen black and says error.)

Or make a list like you said, and use this script:
if not (list) contains (answer)
switch to costume error
else
(put whatever else here)

Offline

 

#7 2010-08-29 09:36:26

colorfusion
Scratcher
Registered: 2009-10-03
Posts: 500+

Re: I have a problem!

It really depends how it is running.
Generally you should just make a costume in the background and when it receives the invalid code or whatever it switches to that costume.
But I can not give you the script because you have not talled us enough about what you already have.
Upload the project?

Offline

 

Board footer