Discuss Scratch
- Discussion Forums
- » Suggestions
- » Solid Block
- Shadow_King47
- Scratcher
9 posts
Solid Block
A solid bock would make any sprite in the script solid so that things don't go through it. Can you please add it, pretty please?
Last edited by Shadow_King47 (May 22, 2020 13:57:30)
- Strajox
- Scratcher
100+ posts
Solid Block
You can make a script like this in the sprite that you don't want to go trough other sprites: A solid bock would make any sprite in the script solid so that things don't go through it. Can you please add it, pretty please?
when green flag clicked
forever
if <touching [sprite v] ?> then
go to x: (OldX) y: (OldY)
else
set [OldX v] to (x position)
set [OldY v] to (y position)
end
end
There are other ways but this is one of easier ways.
do not
- Strajox
- Scratcher
100+ posts
Solid Block
You could do this: A solid block is just one block
define
forever
if <touching [sprite v] ?> then
go to x: (OldX) y: (OldY)
else
set [OldX v] to (x position)
set [OldY v] to (y position)
end
end
and put the block in the sprite.
do not
- Shadow_King47
- Scratcher
9 posts
Solid Block
The solid block would not have to be define if it gets added to scratch and it would help a lot of people making games.
- PizzaAddict4Life
- Scratcher
1000+ posts
Solid Block
But what can't go through it? What if it moves? There are a lot of things to think about, and you should just code it. And how would that work? Would it be like this block:
And what if you want them to only partially go through it?
set rotation style [left-right v] // like this?
set toughness [solid v] :: motion // what you are looking for?
And what if you want them to only partially go through it?
Last edited by PizzaAddict4Life (May 22, 2020 14:34:23)
Projects
#SaveCubeupload | Kumquat Attack | Game in which you can submit your avatar
Studios
Be Moist | Forum Helpers
Topics
#RoadToMoist100
Press CTRL+SHIFT+DOWN after highlighting a bit of my signature to see the rest of my signature (and keep doing it)
Whats a stick?
If you suggest that the days since 2000 block is removed, you are going to feel the wrath of my TNT recklessness
My kumquat protectors: (~˘▾˘)~ ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) (◕‿◕✿) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ༼ つ ◕_◕ ༽つ
Total Power: 35
Ok this is the end of my signature, but scroll down some more if you want some nice color hex codes.
Turquoise ish green: #17e67b
Epic nice blue: #0090c0
Cool light blue: #c4ffec, #a3ffe1, #85ffd7
Bippity Boppity Boo wow you found me congrats
#SaveCubeupload | Kumquat Attack | Game in which you can submit your avatar
Studios
Be Moist | Forum Helpers
Topics
#RoadToMoist100
Press CTRL+SHIFT+DOWN after highlighting a bit of my signature to see the rest of my signature (and keep doing it)
Whats a stick?
If you suggest that the days since 2000 block is removed, you are going to feel the wrath of my TNT recklessness
My kumquat protectors: (~˘▾˘)~ ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) (◕‿◕✿) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ༼ つ ◕_◕ ༽つ
Total Power: 35
Ok this is the end of my signature, but scroll down some more if you want some nice color hex codes.
Turquoise ish green: #17e67b
Epic nice blue: #0090c0
Cool light blue: #c4ffec, #a3ffe1, #85ffd7
Bippity Boppity Boo wow you found me congrats
- Wisst_Cat
- Scratcher
100+ posts
Solid Block
Hey uh, this is a weird case but you could just make it go…
or use…
when green flag clicked
forever
if <not <touching [Sprite v] ?>> then
set [X v] to (x position)
set [Y v] to (y position)
wait (0.1.1) secs //It waits for the update!
else
repeat until <not <touching [Sprite v] ?>>
go to x: (X) y: (Y)
end
end
end
or use…
You can make a script like this in the sprite that you don't want to go trough other sprites: A solid bock would make any sprite in the script solid so that things don't go through it. Can you please add it, pretty please?
when green flag clicked
forever
if <touching [sprite v] ?> then
go to x: (OldX) y: (OldY)
else
set [OldX v] to (x position)
set [OldY v] to (y position)
end
end
Last edited by Wisst_Cat (May 22, 2020 14:44:24)
(~˘▾˘)~ - This is HulaHula, she protects me from kumquats and helps correct my grammar.
–
Bored? Come play some of my games, here are some highlights:
An endless runner (kinda).
A cool space pong game.
or make your own! Wait… no ideas?
Use this link!
–
Remember, X Æ A-12 is pronounced Kyle!
- PizzaAddict4Life
- Scratcher
1000+ posts
Solid Block
-snip-
Why are you having it wait 0.1.1 seconds?
Isn't that the same as 0.11 seconds?
Projects
#SaveCubeupload | Kumquat Attack | Game in which you can submit your avatar
Studios
Be Moist | Forum Helpers
Topics
#RoadToMoist100
Press CTRL+SHIFT+DOWN after highlighting a bit of my signature to see the rest of my signature (and keep doing it)
Whats a stick?
If you suggest that the days since 2000 block is removed, you are going to feel the wrath of my TNT recklessness
My kumquat protectors: (~˘▾˘)~ ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) (◕‿◕✿) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ༼ つ ◕_◕ ༽つ
Total Power: 35
Ok this is the end of my signature, but scroll down some more if you want some nice color hex codes.
Turquoise ish green: #17e67b
Epic nice blue: #0090c0
Cool light blue: #c4ffec, #a3ffe1, #85ffd7
Bippity Boppity Boo wow you found me congrats
#SaveCubeupload | Kumquat Attack | Game in which you can submit your avatar
Studios
Be Moist | Forum Helpers
Topics
#RoadToMoist100
Press CTRL+SHIFT+DOWN after highlighting a bit of my signature to see the rest of my signature (and keep doing it)
Whats a stick?
If you suggest that the days since 2000 block is removed, you are going to feel the wrath of my TNT recklessness
My kumquat protectors: (~˘▾˘)~ ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) (◕‿◕✿) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ༼ つ ◕_◕ ༽つ
Total Power: 35
Ok this is the end of my signature, but scroll down some more if you want some nice color hex codes.
Turquoise ish green: #17e67b
Epic nice blue: #0090c0
Cool light blue: #c4ffec, #a3ffe1, #85ffd7
Bippity Boppity Boo wow you found me congrats
- Wisst_Cat
- Scratcher
100+ posts
Solid Block
-snip-
Why are you having it wait 0.1.1 seconds?
Isn't that the same as 0.11 seconds?
I just do that, something I used to do back when I discovered that. Not many people call it out, so I just do it on reflex lol.
(~˘▾˘)~ - This is HulaHula, she protects me from kumquats and helps correct my grammar.
–
Bored? Come play some of my games, here are some highlights:
An endless runner (kinda).
A cool space pong game.
or make your own! Wait… no ideas?
Use this link!
–
Remember, X Æ A-12 is pronounced Kyle!
- PizzaAddict4Life
- Scratcher
1000+ posts
Solid Block
-snip-
Why are you having it wait 0.1.1 seconds?
Isn't that the same as 0.11 seconds?
I just do that, something I used to do back when I discovered that. Not many people call it out, so I just do it on reflex lol.
Ah, gotcha.
Back on topic.
I don't think this block should be added. There are so many things about it that vary, such as transparency, if traveled into, and many more. I suggest you just code it
Projects
#SaveCubeupload | Kumquat Attack | Game in which you can submit your avatar
Studios
Be Moist | Forum Helpers
Topics
#RoadToMoist100
Press CTRL+SHIFT+DOWN after highlighting a bit of my signature to see the rest of my signature (and keep doing it)
Whats a stick?
If you suggest that the days since 2000 block is removed, you are going to feel the wrath of my TNT recklessness
My kumquat protectors: (~˘▾˘)~ ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) (◕‿◕✿) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ༼ つ ◕_◕ ༽つ
Total Power: 35
Ok this is the end of my signature, but scroll down some more if you want some nice color hex codes.
Turquoise ish green: #17e67b
Epic nice blue: #0090c0
Cool light blue: #c4ffec, #a3ffe1, #85ffd7
Bippity Boppity Boo wow you found me congrats
#SaveCubeupload | Kumquat Attack | Game in which you can submit your avatar
Studios
Be Moist | Forum Helpers
Topics
#RoadToMoist100
Press CTRL+SHIFT+DOWN after highlighting a bit of my signature to see the rest of my signature (and keep doing it)
Whats a stick?
If you suggest that the days since 2000 block is removed, you are going to feel the wrath of my TNT recklessness
My kumquat protectors: (~˘▾˘)~ ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) (◕‿◕✿) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ༼ つ ◕_◕ ༽つ
Total Power: 35
Ok this is the end of my signature, but scroll down some more if you want some nice color hex codes.
Turquoise ish green: #17e67b
Epic nice blue: #0090c0
Cool light blue: #c4ffec, #a3ffe1, #85ffd7
Bippity Boppity Boo wow you found me congrats
- Nambaseking01
- Scratcher
1000+ posts
Solid Block
Ah, gotcha.
Back on topic.
I don't think this block should be added. There are so many things about it that vary, such as transparency, if traveled into, and many more. I suggest you just code it
Seconding this opinion - there are many workarounds and I don't really see how this would be helpful. Plus, I'm just imagining a block saying “be solid” - it just sounds so weird and out of place in a coding area.
Hey there! My name is Nammy. I'm a male Forum Helper and Scratch Wiki Editor.
Profile | Test Account | Talk with me here! | Griffpatch is quitting Scratch?!
Profile | Test Account | Talk with me here! | Griffpatch is quitting Scratch?!
- Wisst_Cat
- Scratcher
100+ posts
Solid Block
Okay okay, now that we have this, wouldn't it be easier to make your own? You can make it a custom block and put it into the backpack. Then you can use it whenever you need it since it isn't clearly defined. No support.
(~˘▾˘)~ - This is HulaHula, she protects me from kumquats and helps correct my grammar.
–
Bored? Come play some of my games, here are some highlights:
An endless runner (kinda).
A cool space pong game.
or make your own! Wait… no ideas?
Use this link!
–
Remember, X Æ A-12 is pronounced Kyle!
- Maximouse
- Scratcher
1000+ posts
Solid Block
0 seconds is better, because it waits exactly one frame.-snip-
Why are you having it wait 0.1.1 seconds?
Isn't that the same as 0.11 seconds?
- Wisst_Cat
- Scratcher
100+ posts
Solid Block
I'll try that, but back on topic now, please?0 seconds is better, because it waits exactly one frame.-snip-
Why are you having it wait 0.1.1 seconds?
Isn't that the same as 0.11 seconds?
(~˘▾˘)~ - This is HulaHula, she protects me from kumquats and helps correct my grammar.
–
Bored? Come play some of my games, here are some highlights:
An endless runner (kinda).
A cool space pong game.
or make your own! Wait… no ideas?
Use this link!
–
Remember, X Æ A-12 is pronounced Kyle!
- Discussion Forums
- » Suggestions
- » Solid Block