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)


This is my signature. It's really not that good. I don't even know why you are reading it. It is pointless reading this, and yet, here you are, reading every single word of it. Just stop reading my signature and go on with your life. You are just wasting your time here. Why haven't you gone yet? I have repeatedly told you to leave. You must not be able to read. But wait, you are reading this, so you can read. That must mean you are ignoring me. I don't like being ignored, but if you are good at ignoring things, why is it so hard for you to ignore this signature. I'm getting tired of writing words to fill this signature, so you should just give me a break and stop reading.
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)


This is my signature. It's really not that good. I don't even know why you are reading it. It is pointless reading this, and yet, here you are, reading every single word of it. Just stop reading my signature and go on with your life. You are just wasting your time here. Why haven't you gone yet? I have repeatedly told you to leave. You must not be able to read. But wait, you are reading this, so you can read. That must mean you are ignoring me. I don't like being ignored, but if you are good at ignoring things, why is it so hard for you to ignore this signature. I'm getting tired of writing words to fill this signature, so you should just give me a break and stop reading.
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)


This is my signature. It's really not that good. I don't even know why you are reading it. It is pointless reading this, and yet, here you are, reading every single word of it. Just stop reading my signature and go on with your life. You are just wasting your time here. Why haven't you gone yet? I have repeatedly told you to leave. You must not be able to read. But wait, you are reading this, so you can read. That must mean you are ignoring me. I don't like being ignored, but if you are good at ignoring things, why is it so hard for you to ignore this signature. I'm getting tired of writing words to fill this signature, so you should just give me a break and stop reading.
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

High School Athletic Director / Middle School Tech Teacher / High School Baseball Coach
Kung Fu by Nintendo 1984 - https://scratch.mit.edu/projects/369994801/
Taco Defense - Speed Typing - https://scratch.mit.edu/projects/316795450/
Halloween Boss Battle - Taking Back our Woods - https://scratch.mit.edu/projects/257155118/
Almost Pong - https://scratch.mit.edu/projects/656276979/
Studio - My Best Projects - https://scratch.mit.edu/studios/4125978/
Forum Help Project Examples - https://scratch.mit.edu/studios/4133335
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.

High School Athletic Director / Middle School Tech Teacher / High School Baseball Coach
Kung Fu by Nintendo 1984 - https://scratch.mit.edu/projects/369994801/
Taco Defense - Speed Typing - https://scratch.mit.edu/projects/316795450/
Halloween Boss Battle - Taking Back our Woods - https://scratch.mit.edu/projects/257155118/
Almost Pong - https://scratch.mit.edu/projects/656276979/
Studio - My Best Projects - https://scratch.mit.edu/studios/4125978/
Forum Help Project Examples - https://scratch.mit.edu/studios/4133335
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.

High School Athletic Director / Middle School Tech Teacher / High School Baseball Coach
Kung Fu by Nintendo 1984 - https://scratch.mit.edu/projects/369994801/
Taco Defense - Speed Typing - https://scratch.mit.edu/projects/316795450/
Halloween Boss Battle - Taking Back our Woods - https://scratch.mit.edu/projects/257155118/
Almost Pong - https://scratch.mit.edu/projects/656276979/
Studio - My Best Projects - https://scratch.mit.edu/studios/4125978/
Forum Help Project Examples - https://scratch.mit.edu/studios/4133335
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/

High School Athletic Director / Middle School Tech Teacher / High School Baseball Coach
Kung Fu by Nintendo 1984 - https://scratch.mit.edu/projects/369994801/
Taco Defense - Speed Typing - https://scratch.mit.edu/projects/316795450/
Halloween Boss Battle - Taking Back our Woods - https://scratch.mit.edu/projects/257155118/
Almost Pong - https://scratch.mit.edu/projects/656276979/
Studio - My Best Projects - https://scratch.mit.edu/studios/4125978/
Forum Help Project Examples - https://scratch.mit.edu/studios/4133335

Powered by DjangoBB