Hey! I am wondering how I do two things.
1. How do I detect if Actor A is touching Actor B?
2. How do I make it so when "Reset" is pressed Actor A and B show.
Thanks.
Actor actor = getOneIntersectingObject(null); // place the class you want to check for, instead of null write "yourclass.class" without "".
if (actor != null){
place some code
} else {
place some more code
}if (isTouching(B.class))
{
//do something
}addObject(new A(), 20, 10); addObject(new B(), 30, 50);
/// in ActorA class
private Actor actorB; // as instance field set to the actor to intersect with
// in act
if (intersects(actorB)) { ... }