Discuss Scratch

myBlanketfortClub
Scratcher
18 posts

How do I "stack" the define, or my blocks?

I don't know if it's called stacking, but when I tried to define a block it would define it and then execute the next block. It would be like the until done script. Does anyone know what I mean?
best-games-ever
Scratcher
500+ posts

How do I "stack" the define, or my blocks?

Would this help you?

repeat until <...>
Your Custom Block Here
end

Otherwise I don't exactly understand what you mean. Their is no way to stack the
define Your Custom Block Here
blocks.

Hope this helps

Last edited by best-games-ever (Oct. 5, 2019 22:47:22)

myBlanketfortClub
Scratcher
18 posts

How do I "stack" the define, or my blocks?

What do you mean by, “Why do we drive on parkways and park on driveways”? Sorry I'm not very good with phrases.
myBlanketfortClub
Scratcher
18 posts

How do I "stack" the define, or my blocks?

I mean that when I put the define block, the next block isn't executed until the defined block is over.
myBlanketfortClub
Scratcher
18 posts

How do I "stack" the define, or my blocks?

hmmm I guess it's not possible. I think it has to define the block and then goes on to the next.
best-games-ever
Scratcher
500+ posts

How do I "stack" the define, or my blocks?

myBlanketfortClub wrote:

I mean that when I put the define block, the next block isn't executed until the defined block is over.
It seems that on my computer: My browser / operating system: ChromeOS 12371.75.0, Chrome 77.0.3865.105, No Flash version detected
that does not seem to happen. Maybe it is your computer. Here is an example project that uses a define block and executes the next block right after: https://scratch.mit.edu/projects/334216900/

Hope this helps

Last edited by best-games-ever (Oct. 5, 2019 23:12:41)

best-games-ever
Scratcher
500+ posts

How do I "stack" the define, or my blocks?

myBlanketfortClub wrote:

What do you mean by, “Why do we drive on parkways and park on driveways”? Sorry I'm not very good with phrases.

We drive our cars on PARKways and park our cars on DRIVEways Its opposites.

Last edited by best-games-ever (Oct. 5, 2019 23:16:35)

myBlanketfortClub
Scratcher
18 posts

How do I "stack" the define, or my blocks?

best-games-ever wrote:

myBlanketfortClub wrote:

I mean that when I put the define block, the next block isn't executed until the defined block is over.
It seems that on my computer: My browser / operating system: ChromeOS 12371.75.0, Chrome 77.0.3865.105, No Flash version detected
that does not seem to happen. Maybe it is your computer. Here is an example project that uses a define block and executes the next block right after: https://scratch.mit.edu/projects/334216900/


um no for like a define block with a long execute time. For my instance, it's a forever loop in the define block but it had a wait time. I wanted that to happen when the block after that happened.
mstone326
Scratcher
1000+ posts

How do I "stack" the define, or my blocks?

Share your project so we can see what is going on. Otherwise all we can do is guess
myBlanketfortClub
Scratcher
18 posts

How do I "stack" the define, or my blocks?

Okay I'll make a new so that only the define block.
mstone326
Scratcher
1000+ posts

How do I "stack" the define, or my blocks?

Problem is that will not help us figure out how it is affecting other scripts in your project. But share away and we will do what we can.
myBlanketfortClub
Scratcher
18 posts

How do I "stack" the define, or my blocks?

https://scratch.mit.edu/projects/334218198/ here let's see with this project first.
myBlanketfortClub
Scratcher
18 posts

How do I "stack" the define, or my blocks?

As you see, he'll never meow, “hello!”
mstone326
Scratcher
1000+ posts

How do I "stack" the define, or my blocks?

You have a forever loop on your define block. That block will never finish so the next set of blocks will never start. Best to use a a broadcast for that scenario. Not a broadcast and wait, you will get the same result. Just a standard broadcast block. That will initiate that code and move on to what is next.
myBlanketfortClub
Scratcher
18 posts

How do I "stack" the define, or my blocks?

Okay, I knew that I just wanted to know for with a define block. I'm new and my teacher wanted to see some define. Now I know that the next block will happen after the define block is executed.
mstone326
Scratcher
1000+ posts

How do I "stack" the define, or my blocks?

Here is another way to use a define block with a broadcast. If you have to use a define with a forever in it, here is a different method to call it

https://scratch.mit.edu/projects/334218850/

Powered by DjangoBB