Discuss Scratch

JJCGAMER4421
Scratcher
85 posts

How do you make another sprite do something when 2 other sprites collide?

How do you make something happen when two stuff collide?
Ex.
Sprite 1 and 2 collide.
Sprite 3 detects them collide and does something.
I need help with part 2.
Sid1409
Scratcher
43 posts

How do you make another sprite do something when 2 other sprites collide?

The solution is really easy:

Sprite 1 code:
whenclickedforeveriftouchingsprite 2?thenbroadcastsprite 1 and 2 have collided

Sprite 3 code:
whenIreceivesprite 1 and 2 have collidedsayTwo sprites have collided.for2secs

If this helps, a follow would be appreciated.

Last edited by Sid1409 (Nov. 4, 2021 23:05:53)

JJCGAMER4421
Scratcher
85 posts

How do you make another sprite do something when 2 other sprites collide?

another question, how to make a high score variable that says the person who got the high score
whenclickedifhighscorescorethensayusernameelsenope
JJCGAMER4421
Scratcher
85 posts

How do you make another sprite do something when 2 other sprites collide?

score is bigger than score
JJCGAMER4421
Scratcher
85 posts

How do you make another sprite do something when 2 other sprites collide?

resolved

Powered by DjangoBB