Discuss Scratch

LUIGIPRO10
Scratcher
5 posts

How do you make collision detection between 2 sprites?

How do you make collision detection between 2 sprites? I used the touch block but the sprites do not respond to my later script. (Note: one of the spirtes is moving
whenbackdropswitchestorepeatuntiltouching?RunningScript
William_Howard
Scratcher
71 posts

How do you make collision detection between 2 sprites?

whenclickedforeveriftouchingother sprite?thenbroadcastgame over
Laddie12
Scratcher
100+ posts

How do you make collision detection between 2 sprites?

Use the dropdown menu on touching and select the other sprite that you want to have the event with. If you have already done that, it should work fine.
LUIGIPRO10
Scratcher
5 posts

How do you make collision detection between 2 sprites?

i have done that but the collision detection still will not register
Inb4
Scratcher
100+ posts

How do you make collision detection between 2 sprites?

Do this for the good guy:

whenclickedforeveriftouchingenemySprite?thenbroadcastgoodGuySpriteDeadplaysounddieSound
asivi
Scratcher
1000+ posts

How do you make collision detection between 2 sprites?

LUIGIPRO10 wrote:

How do you make collision detection between 2 sprites? I used the touch block but the sprites do not respond to my later script. (Note: one of the spirtes is moving
whenbackdropswitchestorepeatuntiltouching?RunningScript

Must we suppose you are using the GLIDE movement block or perhaps moving a large amount of steps at once?
Better share your project.

Last edited by asivi (May 5, 2016 05:59:32)

LUIGIPRO10
Scratcher
5 posts

How do you make collision detection between 2 sprites?

This is my project
https://scratch.mit.edu/projects/105465564/
The Mario and Goomba collision detection doesn't work. (Note: It is still WIP)
asivi
Scratcher
1000+ posts

How do you make collision detection between 2 sprites?

Centering the costumes in the paint editor might be helpful.
LUIGIPRO10
Scratcher
5 posts

How do you make collision detection between 2 sprites?

I tried it. It doesn't work
asivi
Scratcher
1000+ posts

How do you make collision detection between 2 sprites?

Your sprites remain out of center.
harrj605
Scratcher
1 post

How do you make collision detection between 2 sprites?

waitsecs
deck26
Scratcher
1000+ posts

How do you make collision detection between 2 sprites?

harrj605 wrote:

waitsecs
Please don't necropost.
hermyboii
Scratcher
1 post

How do you make collision detection between 2 sprites?

im trying to make a bullet mechanic, and whenever the bullet hits the enemy nothing ever happens, and i was wondering how to fix that?
:/
BTS_Undertale17
Scratcher
9 posts

How do you make collision detection between 2 sprites?

I tried coding the codes, but they didn't work (-n-) WHY
TerymOrt
New Scratcher
10 posts

How do you make collision detection between 2 sprites?

BTS_Undertale17 wrote:

I tried coding the codes, but they didn't work (-n-) WHY

Please create your own new topic rather than necroposting.

Powered by DjangoBB