Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » My code doesn't execute.
- quadrillprojectstest
-
Scratcher
4 posts
My code doesn't execute.
My code is just running the When flag clicked, Go to back, Stop all and the
wait until <(Size ::variables) > [2719]>. This is my code:
when green flag clicked
wait until <(Size ::variables) > [2719]>
stop [other scripts in sprite v]
broadcast [woppa! v]
play sound [woppa! v] until done
wait (1) secs
go to back
stop [noodling arround v]
Last edited by quadrillprojectstest (March 19, 2023 15:54:11)
- medians
-
Scratcher
1000+ posts
My code doesn't execute.
There are size limits in place, so it's almost certain that it's never going to reach anywhere high, especially in the thousands.
Last edited by medians (March 19, 2023 03:18:59)
- quadrillprojectstest
-
Scratcher
4 posts
My code doesn't execute.
There are size limits in place, so it's almost certain that it's never going to reach anywhere high, especially in the thousands.It actually meant a size variable, but somehow it set to a purple size block
- medians
-
Scratcher
1000+ posts
My code doesn't execute.
Oh, that's because it has the same name as the looks block.There are size limits in place, so it's almost certain that it's never going to reach anywhere high, especially in the thousands.It actually meant a size variable, but somehow it set to a purple size block
You have to do this:
(Size ::variables) //add the category
(Size ::variables)
Last edited by medians (March 19, 2023 03:31:04)
- medians
-
Scratcher
1000+ posts
My code doesn't execute.
Okay, Here is the link: LINKWhere is the code that you mentioned in the original post? Also, do you mean lowercase (I can't find any place where variable starting with an uppercase S increases)?
Edit: Nevermind found it. But why do you have 3 size vars? You can rename variables.
Edit 2: Also the issue is that the code never executes because you've stopped it by having the “stop other scripts in sprite”.

Last edited by medians (March 19, 2023 16:23:39)
- quadrillprojectstest
-
Scratcher
4 posts
My code doesn't execute.
Oh now I get it.Okay, Here is the link: LINKWhere is the code that you mentioned in the original post? Also, do you mean lowercase (I can't find any place where variable starting with an uppercase S increases)?
Edit: Nevermind found it. But why do you have 3 size vars? You can rename variables.
Edit 2: Also the issue is that the code never executes because you've stopped it by having the “stop other scripts in sprite”.
- Discussion Forums
- » Help with Scripts
-
» My code doesn't execute.