Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » how to make a sprite get the name of the sprite it touched
- deck26
-
1000+ posts
how to make a sprite get the name of the sprite it touched
Not possible other than going through a list of sprite names and checking for touching each one. You can do that in a loop in a custom block with no screen refresh.
- HappyKid54321
-
100+ posts
how to make a sprite get the name of the sprite it touched
I think this is impossible. Sorry
- standing_rake
-
55 posts
how to make a sprite get the name of the sprite it touched
Not true. Depending on the shape, it might be possible. If you are using circles, I think this is impossible. Sorryhttps://scratch.mit.edu/projects/883303054/editor/ could work on a sprite level, although both sprites would need to work together. It would also work for squares too, but the distance calculator would need to be changed.
- scratch___user12345
-
1000+ posts
how to make a sprite get the name of the sprite it touched
Here is an implementation of what @deck26 suggested: Not possible other than going through a list of sprite names and checking for touching each one. You can do that in a loop in a custom block with no screen refresh.
- GDplague
-
33 posts
how to make a sprite get the name of the sprite it touched
Here is an implementation of what @deck26 suggested: Not possible other than going through a list of sprite names and checking for touching each one. You can do that in a loop in a custom block with no screen refresh.
God bless you
- Godzillaplayer
-
4 posts
how to make a sprite get the name of the sprite it touched
Here is an implementation of what @deck26 suggested: Not possible other than going through a list of sprite names and checking for touching each one. You can do that in a loop in a custom block with no screen refresh.
would this work for color detection?
- cookieclickerer33
-
1000+ posts
how to make a sprite get the name of the sprite it touched
yes if you had a list of every hex color you wantHere is an implementation of what @deck26 suggested: Not possible other than going through a list of sprite names and checking for touching each one. You can do that in a loop in a custom block with no screen refresh.
would this work for color detection?
- Discussion Forums
- » Help with Scripts
-
» how to make a sprite get the name of the sprite it touched