I'm making an dungeon game, and, for every dungeon level, i need more than 1 pattern to generate dungeons. So, i made 1 sprite that i called dungeon layout, and, he has more than 30 animations. These animations are the dungeon layout, so, in each animation, it has a blue pixel = Walls, green pixel = Traps, and yellow pixel = Chest. My objective is, to detect the color of the pixel and changes it for the designited object. Like, change the yellow pixel to an chest. But, detecting automatically in every animation to make it easier to load a lot of dungeon layouts. ( If you know a better dungeon generator system, tell me too. Like, an random generator without making animations. )