Discuss Scratch

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.

medians wrote:

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.

quadrillprojectstest wrote:

medians wrote:

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
Oh, that's because it has the same name as the looks block.
You have to do this:
(Size ::variables) //add the category
(Size ::variables)
And if so, can you send the link to the project?

Last edited by medians (March 19, 2023 03:31:04)

quadrillprojectstest
Scratcher
4 posts

My code doesn't execute.

Okay, Here is the link: LINK
medians
Scratcher
1000+ posts

My code doesn't execute.

quadrillprojectstest wrote:

Okay, Here is the link: LINK
Where 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.

medians wrote:

quadrillprojectstest wrote:

Okay, Here is the link: LINK
Where 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”.
Oh now I get it.

Powered by DjangoBB