Discuss Scratch

Shadow_King47
Scratcher
6 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

Shadow_King47 wrote:

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?
You can make a script like this in the sprite that you don't want to go trough other sprites:

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.
Shadow_King47
Scratcher
6 posts

Solid Block

A solid block is just one block
Strajox
Scratcher
100+ posts

Solid Block

Shadow_King47 wrote:

A solid block is just one block
You could do this:

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.
Shadow_King47
Scratcher
6 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:

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)


"Tradition is just peer pressure from dead people" - [Unknown] :: #0090c0
Current status: [Re-Applying to be a forum helper next week!] :: #85ffd7
Current unanswered problems: [None] :: #17e67b
60 second rule please be nice to me… please, I said please, please PLEASE!

Will your signature get eaten by kumquats? I have created a program for it that makes it easy!

Press CTRL+SHIFT+DOWN after highlighting a bit of my signature to see the rest of my signature (and keep doing it)

My kumquat protectors: (~˘▾˘)~ ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) (◕‿◕✿) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ)
Total Power: 34

How to get your avatar into my game

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
Wisst_Cat
Scratcher
100+ posts

Solid Block

Hey uh, this is a weird case but you could just make it go…

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…

Strajox wrote:

Shadow_King47 wrote:

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?
You can make a script like this in the sprite that you don't want to go trough other sprites:

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

Wisst_Cat wrote:

-snip-

Why are you having it wait 0.1.1 seconds?

Isn't that the same as 0.11 seconds?

"Tradition is just peer pressure from dead people" - [Unknown] :: #0090c0
Current status: [Re-Applying to be a forum helper next week!] :: #85ffd7
Current unanswered problems: [None] :: #17e67b
60 second rule please be nice to me… please, I said please, please PLEASE!

Will your signature get eaten by kumquats? I have created a program for it that makes it easy!

Press CTRL+SHIFT+DOWN after highlighting a bit of my signature to see the rest of my signature (and keep doing it)

My kumquat protectors: (~˘▾˘)~ ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) (◕‿◕✿) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ)
Total Power: 34

How to get your avatar into my game

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
Wisst_Cat
Scratcher
100+ posts

Solid Block

PizzaAddict4Life wrote:

Wisst_Cat wrote:

-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

Wisst_Cat wrote:

PizzaAddict4Life wrote:

Wisst_Cat wrote:

-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

"Tradition is just peer pressure from dead people" - [Unknown] :: #0090c0
Current status: [Re-Applying to be a forum helper next week!] :: #85ffd7
Current unanswered problems: [None] :: #17e67b
60 second rule please be nice to me… please, I said please, please PLEASE!

Will your signature get eaten by kumquats? I have created a program for it that makes it easy!

Press CTRL+SHIFT+DOWN after highlighting a bit of my signature to see the rest of my signature (and keep doing it)

My kumquat protectors: (~˘▾˘)~ ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) (◕‿◕✿) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ)
Total Power: 34

How to get your avatar into my game

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
Nambaseking01
Scratcher
1000+ posts

Solid Block

PizzaAddict4Life wrote:

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.

Nambaseking01 (Nammy) | 4.8k+ Posts | Stay Safe | My Quality Scratch Shop

Weekly Underrated Scratcher Shoutout | My Scratch Suggestion | WASH YOUR HANDS!

(added by moderator - I like to add stuff, too!) <- a moderator really added this on April Fools Day when I pretended to be a fake moderator …
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

PizzaAddict4Life wrote:

Wisst_Cat wrote:

-snip-

Why are you having it wait 0.1.1 seconds?

Isn't that the same as 0.11 seconds?
0 seconds is better, because it waits exactly one frame.

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Wisst_Cat
Scratcher
100+ posts

Solid Block

Maximouse wrote:

PizzaAddict4Life wrote:

Wisst_Cat wrote:

-snip-

Why are you having it wait 0.1.1 seconds?

Isn't that the same as 0.11 seconds?
0 seconds is better, because it waits exactly one frame.
I'll try that, but back on topic now, please?

(~˘▾˘)~ - 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!

Powered by DjangoBB

Standard | Mobile