Well it really depends on how precise you want the collision to be. But if your looking for something basic I would just make a sprite that is a super small dot and set the ghost effect to 100%, it's important to ghost it as appose to hiding it because sprites can't detect touching things when they are hidden. Anyways, make a custom block called detect and make it run without screenrefresh, that way it doesn't wait for the next tick to run the operation. Then make the sprite travel: left, return the distance ; travel right, return the distance ; travel up, return the distance ; and travel down, return the distance. That way you have the distance of the closest thing in all directions and it can detect any color sprite or edge you want. Then you can just make the distance being close count as collision.