I know of setLocation(100,100);
but how do i say setLocation of a different class? setLocation(player.class 940,70)???
I hope i've explained it well enough.
Thanks.
otherActor.setLocation(100,100);
public void hit()
{
Actor ball;
ball=getOneObjectAtOffset(0,0,GoldenBall.class);
{
ball.setLocation(100,100);
} if (ball != null)
{
ball.setLocation(100, 100);
}