Hi Guys,
I am programming a car game at the moment and I want to use Colordetection. My problem is: How can I get an Image from Actor Class1 to use in an Actor Class2 for ColorDetection?
Thx for helping
// in Class2 Actor class1 = (Actor)getWorld().getObjects(Class1.class).get(0);
int class1x = class1.getX(); // etc.
public class Wheel1 extends Actor { Color color = Color.BLACK; Actor background2 = (Actor)getWorld().getObjects(background2.class).get(0); public void act() { this.getX(); this.getY(); private Color getColorAt(this.getX(), this.getY()) { }