[Solved] Detect a color of a sprite
Get all the sprite(10) in a arrayMap. And get the color value or you can say current sprite, Using this key get map value when you are setting the color or sprite. ArrayMap<Sprite, String> arrayMap=new ArrayMap<Sprite, String>(); arrayMap.put(sprite1, “Red”); arrayMap.put(sprite2, “Yellow”); arrayMap.put(sprite3, “Black”); arrayMap.put(sprite4, “Pink”); arrayMap.put(sprite5, “Color1”); arrayMap.put(sprite6, “Color2”); arrayMap.put(sprite7, “Color3”); arrayMap.put(sprite8, “Color4”); arrayMap.put(sprite9, “Color5”); … Read more