Discuss Scratch

The-Molten-Freddy
Scratcher
500+ posts

When area ___ of sprite clicked

musicROCKS013 wrote:

The-Molten-Freddy wrote:

musicROCKS013 wrote:

The-Molten-Freddy wrote:

Okay, but how do you label them?
Most sprites are breakable. Those pieces are the areas. Non breakable sprites only have 1 area.
But how do you know which part has what Area number? Don’t you dare tell me to refer to your mock-up, because that doesn’t explain how you got those numbers for the mock-up.
Refer to the pic. Each will be similar to that. uh oh i triggered

Last edited by The-Molten-Freddy (June 14, 2022 19:58:37)

musicROCKS013
Scratcher
1000+ posts

When area ___ of sprite clicked

The-Molten-Freddy wrote:

musicROCKS013 wrote:

Okay, but how do you label them?
Most sprites are breakable. Those pieces are the areas. Non breakable sprites only have 1 area.
You mean grouped shapes? What about bitmap?
The-Molten-Freddy
Scratcher
500+ posts

When area ___ of sprite clicked

musicROCKS013 wrote:

The-Molten-Freddy wrote:

musicROCKS013 wrote:

Okay, but how do you label them?
Most sprites are breakable. Those pieces are the areas. Non breakable sprites only have 1 area.
You mean grouped shapes? What about bitmap?
In that case, only one area.
musicROCKS013
Scratcher
1000+ posts

When area ___ of sprite clicked

The-Molten-Freddy wrote:

Refer to the pic. Each will be similar to that. uh oh i triggered
But how did you get those numbers?? They can’t just be random, otherwise there would be a lot of useless trial and error needed for this to work.

Edit: like, what if I’m making my own costume? I don’t have any control or way to immediately tell the Area # of each object.

Last edited by musicROCKS013 (June 14, 2022 20:01:56)

The-Molten-Freddy
Scratcher
500+ posts

When area ___ of sprite clicked

musicROCKS013 wrote:

The-Molten-Freddy wrote:

Refer to the pic. Each will be similar to that. uh oh i triggered
But how did you get those numbers?? They can’t just be random, otherwise there would be a lot of useless trial and error needed for this to work.
Ok, I'ma make a better mock up (if I have time). It'll go clockwise with each area.
musicROCKS013
Scratcher
1000+ posts

When area ___ of sprite clicked

The-Molten-Freddy wrote:

It'll go clockwise with each area.
Clockwise based on the center of the object? If so, what if two are on the exact same location?

Edit: also, starting where? From the top, bottom, corner?

Last edited by musicROCKS013 (June 14, 2022 20:04:28)

The-Molten-Freddy
Scratcher
500+ posts

When area ___ of sprite clicked

musicROCKS013 wrote:

The-Molten-Freddy wrote:

It'll go clockwise with each area.
Clockwise based on the center of the object? If so, what if two are on the exact same location?
They can't be. And I meant counterclockwise, from your screen when the sprite is pointed to 90 degrees.
musicROCKS013
Scratcher
1000+ posts

When area ___ of sprite clicked

The-Molten-Freddy wrote:

musicROCKS013 wrote:

The-Molten-Freddy wrote:

It'll go clockwise with each area.
Clockwise based on the center of the object? If so, what if two are on the exact same location?
They can't be. And I meant counterclockwise, from your screen when the sprite is pointed to 90 degrees.
This all seems very overcomplicated. My workaround is easier than this.
The-Molten-Freddy
Scratcher
500+ posts

When area ___ of sprite clicked

musicROCKS013 wrote:

The-Molten-Freddy wrote:

musicROCKS013 wrote:

The-Molten-Freddy wrote:

It'll go clockwise with each area.
Clockwise based on the center of the object? If so, what if two are on the exact same location?
They can't be. And I meant counterclockwise, from your screen when the sprite is pointed to 90 degrees.
This all seems very overcomplicated. My workaround is easier than this.
OP pic updated. And this is one block compared to your method of madness
musicROCKS013
Scratcher
1000+ posts

When area ___ of sprite clicked

The-Molten-Freddy wrote:

OP pic updated.
I still have some questions you need to address:

How do you know what area is what? (Explain in detail.)

What counts as an area?

Why are you able to move different areas (as you mentioned in some examples of how this would be useful)? Literally just use clones.

Last edited by musicROCKS013 (June 14, 2022 20:12:25)

musicROCKS013
Scratcher
1000+ posts

When area ___ of sprite clicked

musicROCKS013 wrote:

The-Molten-Freddy wrote:

OP pic updated.
I still have some questions you need to address:

How do you know what area is what? (Explain in detail.)

What counts as an area?

Why are you able to move different areas (as you mentioned in some examples of how this would be useful)? Literally just use clones.

Edit: in the take apart and put back together game, are you able to change and get the x and y of these areas?

Oops didn’t mean to quote

Last edited by musicROCKS013 (June 14, 2022 20:13:57)

The-Molten-Freddy
Scratcher
500+ posts

When area ___ of sprite clicked

musicROCKS013 wrote:

The-Molten-Freddy wrote:

OP pic updated.
I still have some questions you need to address:

How do you know what area is what? (Explain in detail.)

I literally freaking wrote:

Most sprites are breakable. Those pieces are the areas. Non breakable sprites only have 1 area.
What counts as an area?
Whatever piece can be broken off from a sprite.
Why are you able to move different areas (as you mentioned in some examples of how this would be useful)? Literally just use clones.like heck i'm ever doing that
Hmm… Dang, good point.

Last edited by The-Molten-Freddy (June 14, 2022 20:23:30)

musicROCKS013
Scratcher
1000+ posts

When area ___ of sprite clicked

The-Molten-Freddy wrote:

How do you know what area is what? (Explain in detail.)

I literally freaking wrote:

Most sprites are breakable. Those pieces are the areas. Non breakable sprites only have 1 area.
No, how do you know what area is what number?
The-Molten-Freddy
Scratcher
500+ posts

When area ___ of sprite clicked

musicROCKS013 wrote:

The-Molten-Freddy wrote:

How do you know what area is what? (Explain in detail.)

I literally freaking wrote:

Most sprites are breakable. Those pieces are the areas. Non breakable sprites only have 1 area.
No, how do you know what area is what number?

I also wrote:

It'll go (counter)clockwise with each area.

For a better explanation, starting from the closest area to 12:00 as Area 1, counterclockwise.

Edited a bit

Last edited by The-Molten-Freddy (June 14, 2022 20:30:31)

musicROCKS013
Scratcher
1000+ posts

When area ___ of sprite clicked

The-Molten-Freddy wrote:

musicROCKS013 wrote:

The-Molten-Freddy wrote:

How do you know what area is what? (Explain in detail.)

I literally freaking wrote:

Most sprites are breakable. Those pieces are the areas. Non breakable sprites only have 1 area.
No, how do you know what area is what number?

I also wrote:

It'll go clockwise with each area.

musicROCKS013 wrote:

Edit: also, starting where? From the top, bottom, corner?
The-Molten-Freddy
Scratcher
500+ posts

When area ___ of sprite clicked

For a better explanation, starting from the closest area to 12:00 as Area 1, counterclockwise.
musicROCKS013
Scratcher
1000+ posts

When area ___ of sprite clicked

The-Molten-Freddy wrote:

For a better explanation, starting from the closest area to 12:00 as Area 1, counterclockwise.
If I have one at 11 o clock, and one at 2 o clock, would it start at 11, because it is a less distance away, or 2, because it is the least distance away when starting at 12 and moving clockwise.

Also, what are you using to judge the areas’ position?
The_Imaginarium
Scratcher
1000+ posts

When area ___ of sprite clicked

I feel like this could get confusing if there are a lot of areas bunched together and overlapping.
Conduit7
Scratcher
100+ posts

When area ___ of sprite clicked

based on your mock-up, what would happen if there were multiple costumes? your mock-up uses the costume, but let's say you wanted to make a game with animated character movement. these different costumes could result in areas being different than the previous costume. maybe a block more like this?
when area [ v] of costume [ v] sprite clicked::events hat

Edit: okay that made no sense at all. My point is, one costume may have different areas than another costume, since your mock-up appears to be costume-based

Last edited by Conduit7 (June 15, 2022 03:09:01)

-iviedwall-
Scratcher
500+ posts

When area ___ of sprite clicked

The-Molten-Freddy wrote:

I want 1 block for 1 sprite. Your “workaround” is actually a pain in the butt code. I'm simplifying that.
Ok? That isn't polite.
For a better explanation, starting from the closest area to 12:00 as Area 1, it goes counterclockwise
First, your definition of an “area” doesn't work. The Scratch cat's head is a group of its eyes, nose, mouth, head, etc. . Still, you defined it as one area. Let's not say this won't work when somebody wants to detect if another sprite is touching the cat's eyes first because you define a cat's head as area 1. I'm assuming that a body part goes into one area until 4 - 5. You put Scratch cat's right arm and right leg into area 4 and his torso and left leg into area 5. I can't find a pattern in these random combinations.
Your definitions of areas are just random and aren't detailed, so Scratch Team couldn't find a way to implement this. Because of this, everyone has different opinions of the “areas” you tried to define which will cause confusion.

Second, the mockup is pretty simple, just split the sprite into two or more sprites, one if the part you want to make another sprite detect if they are touching it, and the other is the rest. Like you don't even need clones.

Last edited by -iviedwall- (June 15, 2022 04:06:00)

Powered by DjangoBB