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

#1 2010-12-09 14:53:17

SeanSL
New Scratcher
Registered: 2010-10-03
Posts: 9

renamed variables & script errors

1) Deleted variable names persist and can create run time errors:
A) they show in script blocks that have pull down lists and will tell the run to enter a zero when encountered rather than disrupting the run.
B) If same name is used when a variable is changed from "all scripts" to "this script only" the script again can be hard to debug because the blocks look identical - that is the variable is there on/in the block but the value again is zero, 0, and not what the script is currently processing.

SO................ 2) be careful  3) use this for help when debugging. seansl

Offline

 

#2 2011-01-03 13:12:18

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

Re: renamed variables & script errors

you mean all sprites to this sprite only.
in byob there are script variables.
if the variable is deletd and then remade, it works.

Offline

 

Board footer