In Scratch, there’s a helpful block that detects if a sprite is touching a specific color. I’m attempting to code this into my game, but nothing seems to work. Has anyone coded this before, or otherwise have knowledge on how it could be done?
1 Like
If image = found in the images category (complex)
GitHub is always the answer…
1 Like
Instead of using the if the sprite is touching the color block, you can use the if is sprite overlapping with othersprite. Scratch can have a lot of their own unique blocks and ways of coding that could be impractical in other engines.
1 Like
I think they want it for color coded hitboxes without making hitbox sprites