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:
Please tell me if this is a duplicate or not a problem at all.
make [ v] solidthan:
when green flag clickedand then to both sprites in contact:
forever
if <touching [ v] ?> then
broadcast [ v]
end
end
when I receive [ v]foo being the speed
move ((0) - (foo)) steps
Please tell me if this is a duplicate or not a problem at all.
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- DaEpikDude
- Scratcher
1000+ posts
A "Make Solid" block
How exactly does this work?
poliwag second rule
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
I agree.I think this is supposed to be some sort of activate collision detection block. What would this do?
No support, way too specific.
—————–
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:
again, where foo is speed.
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
I agree.I think this is supposed to be some sort of activate collision detection block. What would this do?
No support, way too specific.
—————–
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
Yes, we know. This is too specific, no support.I agree.I think this is supposed to be some sort of activate collision detection block. What would this do?
No support, way too specific.
—————–
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.
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]
- jromagnoli
- Scratcher
1000+ posts
A "Make Solid" block
At one point, the scratch 3.0 test build had a physics engine extension.
- 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
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!) Does no one else see how useful this would be in creating games?
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
The idea of it being an extension is probably a better idea (like the sun effect idea).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!) Does no one else see how useful this would be in creating games?
I think the block should be rephrased toset 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)
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?
How can you make a sprite solid?
- dude341
- Scratcher
1000+ posts
A "Make Solid" block
You can by learning Scratch. Yeah people.
How can you make a sprite solid?
______
There is no need for this block.
Placeholder
- 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
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