Discuss Scratch

ForkyR222
Scratcher
4 posts

Clone Colliding Detect

how to do it?





—————————
when I receive [wake up v]
if <tired?> then
broadcast [sleep v] and never wake up again
stop [all v]
else
broadcast [wake up v]
end

Last edited by ForkyR222 (Oct. 13, 2022 08:57:54)

ForkyR222
Scratcher
4 posts

Clone Colliding Detect

oops

Last edited by ForkyR222 (Nov. 1, 2022 09:15:49)

Itz_Wolfram
Scratcher
66 posts

Clone Colliding Detect

ForkyR222 wrote:

how to do it?





—————————
when I receive [wake up v]
if <tired?> then
broadcast [sleep v] and never wake up again
stop [all v]
else
broadcast [wake up v]
end
make a variable called “name” and set it to name of sprite
put the variable in name in “touching parameterr”
deck26
Scratcher
1000+ posts

Clone Colliding Detect

Clones of one sprite or different sprites? Either way the touching sprite block works for clones as well - if it's a single sprite you can copy the touching block from another sprite after selecting the right sprite. (Sprite A won't see itself in the touching block drop-down but you can go to sprite B, select sprite A in the block there and copy it to sprite A.)
ForkyR222
Scratcher
4 posts

Clone Colliding Detect

deck26 wrote:

Clones of one sprite or different sprites? Either way the touching sprite block works for clones as well - if it's a single sprite you can copy the touching block from another sprite after selecting the right sprite. (Sprite A won't see itself in the touching block drop-down but you can go to sprite B, select sprite A in the block there and copy it to sprite A.)

Clone to clone collision btw
deck26
Scratcher
1000+ posts

Clone Colliding Detect

ForkyR222 wrote:

deck26 wrote:

Clones of one sprite or different sprites? Either way the touching sprite block works for clones as well - if it's a single sprite you can copy the touching block from another sprite after selecting the right sprite. (Sprite A won't see itself in the touching block drop-down but you can go to sprite B, select sprite A in the block there and copy it to sprite A.)

Clone to clone collision btw
Need more info. How many clones are there? How many collisions might happen at the same time? Always easier if you share what you're doing so we can see the context.
Oumuamua
Scratcher
1000+ posts

Clone Colliding Detect

Powered by DjangoBB