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

#1 2012-10-19 06:30:55

PlutoIsHades
Scratcher
Registered: 2010-10-18
Posts: 1000+

Red script outline?

Maybe this question has already been answered, but what does it mean when a script is supposed to be running, but it's outlined in red instead of white?


Minecraft, Redwall, and Cyberchase fan, and PROUD.

Offline

 

#2 2012-10-19 07:41:11

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: Red script outline?

An error occurred when that script was processed. Examples:

((0) / (0))
hide //on stage
[sqrt v] of (-1)

wink


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#3 2012-10-19 08:30:11

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Red script outline?

As Jontmy00 points out above, trying to divide by zero is one of the most common reasons that a script will go red and stop.  Taking the square root of a negative number will also cause it.  These operations aren't defined in normal mathematical calculations and Scratch doesn't care for them.  Do you have a script that might be doing either of those things?


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#4 2012-10-20 06:46:53

PlutoIsHades
Scratcher
Registered: 2010-10-18
Posts: 1000+

Re: Red script outline?

I don't think so. I can't tell you exactly what it is, as I'm creating it for school but class is on Monday. It mostly has a lot of

if <touching Sprite1>
broadcast
and that sort of stuff. I suspected it meant that something was going wrong, but I wasn't completely sure.


Minecraft, Redwall, and Cyberchase fan, and PROUD.

Offline

 

Board footer