Discuss Scratch

GiggyMantis
Scratcher
65 posts

A "Make Solid" block

I think there should be a block for: “Make Solid” because it would be useful to just do:
make [ v] solid
than:
when green flag clicked
forever
if <touching [ v] ?> then
broadcast [ v]
end
end
and then to both sprites in contact:
when I receive [ v]
move ((0) - (foo)) steps
foo being the speed

Please tell me if this is a duplicate or not a problem at all.

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
dude341
Scratcher
1000+ posts

A "Make Solid" block

What would this do?

Placeholder
-Osiris-
Scratcher
100+ posts

A "Make Solid" block

dude341 wrote:

What would this do?
I think this is supposed to be some sort of activate collision detection block.

No support, way too specific.


DaEpikDude
Scratcher
1000+ posts

A "Make Solid" block

How exactly does this work?

poliwag second rule

And all the world over, each nation's the same,
They've simply no notion of playing the game.
They argue with umpires, they cheer when they've won,
And they practice beforehand, which ruins the fun!
Botcho_Otkho
Scratcher
1000+ posts

A "Make Solid" block

-Osiris- wrote:

dude341 wrote:

What would this do?
I think this is supposed to be some sort of activate collision detection block.

No support, way too specific.
I agree.
—————–
If the sprite is a polygon,there is a simple workaround. Let's say you have a maze,you have the player sprite and the wall sprites. You can do this for every key (for example WASD or ARROW UP,ARROW DOWN,ARROW LEFT and ARROW RIGHT):
when green flag clicked
forever
if <key [w v] pressed?> then
change x by (5)
if <touching [wall v] ?> then
change x by (-5)
end
end
...
end

I see now that the circumstances of one's birth are irrelevant. It is what you do with the gift of life that determines who you are. - Mewtwo
GiggyMantis
Scratcher
65 posts

A "Make Solid" block

In reply to all the “How would this work?” questions, if sprite A and sprite B were touching, they couldn't move in the exact direction the other sprite was in or to show the complicated (current) way to do this:
if <touching [b v] ?> then
turn cw (180) degrees
move (foo) steps
turn cw (180) degrees
end

again, where foo is speed.

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
GiggyMantis
Scratcher
65 posts

A "Make Solid" block

Botcho_Otkho wrote:

-Osiris- wrote:

dude341 wrote:

What would this do?
I think this is supposed to be some sort of activate collision detection block.

No support, way too specific.
I agree.
—————–
If the sprite is a polygon,there is a simple workaround. Let's say you have a maze,you have the player sprite and the wall sprites. You can do this for every key (for example WASD or ARROW UP,ARROW DOWN,ARROW LEFT and ARROW RIGHT):
when green flag clicked
forever
if <key [w v] pressed?> then
change x by (5)
if <touching [wall v] ?> then
change x by (-5)
end
end
...
end

That isn't what I meant I meant, I meant it wouldn't go through other sprites.

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
dude341
Scratcher
1000+ posts

A "Make Solid" block

GiggyMantis wrote:

Botcho_Otkho wrote:

-Osiris- wrote:

dude341 wrote:

What would this do?
I think this is supposed to be some sort of activate collision detection block.

No support, way too specific.
I agree.
—————–
If the sprite is a polygon,there is a simple workaround. Let's say you have a maze,you have the player sprite and the wall sprites. You can do this for every key (for example WASD or ARROW UP,ARROW DOWN,ARROW LEFT and ARROW RIGHT):
when green flag clicked
forever
if <key [w v] pressed?> then
change x by (5)
if <touching [wall v] ?> then
change x by (-5)
end
end
...
end

That isn't what I meant I meant, I meant it wouldn't go through other sprites.
Yes, we know. This is too specific, no support.

Placeholder
Buffek
Scratcher
100+ posts

A "Make Solid" block

No support because it's too specific (Duh)

when green flag clicked
say [I hate my username why did I name myself like this]
stickfiregames
Scratcher
1000+ posts

A "Make Solid" block

No support. Scratch isn't a physics engine, and if it was it would need a lot more than jut this one block.










If you can read this, my signature cubeupload has been eaten by an evil kumquat!




or you just used Inspect Element, you hacker

;
jromagnoli
Scratcher
1000+ posts

A "Make Solid" block

At one point, the scratch 3.0 test build had a physics engine extension.




ROAD TO 10,000 POSTS
████████████████████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 64%










If you can read this, my signature cubeupload has been eaten by an evil kumquat!
hehehe!Mytiptopsecrettopicidentifier!ahjdgggfhjadggahjsahasgdjfsdjfga

GiggyMantis
Scratcher
65 posts

A "Make Solid" block

Does no one else see how useful this would be in creating games?

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Sheep_maker
Scratcher
1000+ posts

A "Make Solid" block

GiggyMantis wrote:

Does no one else see how useful this would be in creating games?
We do, but we don't believe it fits with the current set of default Scratch blocks. It might be something that could belong in an extension (not necessarily a bad thing!)

I think the block should be rephrased to
set solid mode [solid v]::extension // solid, not solid
(like the set drag mode _ block currently in Scratch 3.0)

What if one solid sprite tries to glide over another solid sprite?
Do solid sprites only interact with other solid sprites?
Is the edge considered solid or not?
When a solid sprite creates a clone, the clone likely inherits the solidity. However, it'd be right in the middle of its parent sprite. Would the clone remain there or automatically move to a free spot?
Which motion blocks would be considered “teleportation” (ie it doesn't check if the sprite would collide with another sprite while it moves to the new position) or actual “movement” (ie it checks each position as it moves to the new position, and if it collides with another sprite, it stops there)

- Sheep_maker This is a kumquat-free signature. :P
This is my signature. It appears below all my posts. Discuss it on my profile, not the forums. Here's how to make your own.
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
DaEpikDude
Scratcher
1000+ posts

A "Make Solid" block

Sheep_maker wrote:

GiggyMantis wrote:

Does no one else see how useful this would be in creating games?
We do, but we don't believe it fits with the current set of default Scratch blocks. It might be something that could belong in an extension (not necessarily a bad thing!)

I think the block should be rephrased to
set solid mode [solid v]::extension // solid, not solid
(like the set drag mode _ block currently in Scratch 3.0)

What if one solid sprite tries to glide over another solid sprite?
Do solid sprites only interact with other solid sprites?
Is the edge considered solid or not?
When a solid sprite creates a clone, the clone likely inherits the solidity. However, it'd be right in the middle of its parent sprite. Would the clone remain there or automatically move to a free spot?
Which motion blocks would be considered “teleportation” (ie it doesn't check if the sprite would collide with another sprite while it moves to the new position) or actual “movement” (ie it checks each position as it moves to the new position, and if it collides with another sprite, it stops there)
The idea of it being an extension is probably a better idea (like the sun effect idea).
Obviously I'm not the OP but I think some plausible answers would be:
1: The non-gliding one would probably be knocked out of the way
2: Maybe three modes, non-solid, semi-solid and solid, where non-solids don't interact and don't cause interactions, semi-solid where they interact with solids but don't cause interactions, and solid where they interact and cause interactions (does that make sense? probably not)
3: Probably?
4: Probably move to a free spot, or maybe they always start non-solid
5: Presumably the “go to” blocks, but not move, change or glide

I'd support this being an extension, but not being added into the main palette. It's useful but also pretty specific, so I think it'd fit an extension well.

And all the world over, each nation's the same,
They've simply no notion of playing the game.
They argue with umpires, they cheer when they've won,
And they practice beforehand, which ruins the fun!
Therobloxn00b123
Scratcher
2 posts

A "Make Solid" block

Yeah people.
How can you make a sprite solid?


dude341
Scratcher
1000+ posts

A "Make Solid" block

Therobloxn00b123 wrote:

Yeah people.
How can you make a sprite solid?


You can by learning Scratch.


______
There is no need for this block.

Placeholder
Volix-
Scratcher
100+ posts

A "Make Solid" block

GiggyMantis wrote:

-snip-

Agreed

n
Inkulumo
Scratcher
500+ posts

A "Make Solid" block

Pretty sure it's a dupe, anyways like everyone else said, too specific, and there are many ways of implementing this and just one way would be limiting for newer scratchers.
mystery4000
Scratcher
100+ posts

A "Make Solid" block

The unity game engine has rigid body mechanics, but scratch is a learning launguage so gravity and collisions are good for learning on your own. Also you don’t have to have a forever loop with an “if touching” block, you can have it check every time you move, saves processing power.

No support
KJRYoshi07
Scratcher
1000+ posts

A "Make Solid" block

No Support. This is too advanced for Scratch, and hard to understand.

moved accounts lol

Powered by DjangoBB