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.


1 | otherActor.setLocation( 100 , 100 ); |
1 2 3 4 5 6 7 8 | public void hit() { Actor ball; ball=getOneObjectAtOffset( 0 , 0 ,GoldenBall. class ); { ball.setLocation( 100 , 100 ); } |
1 2 3 4 | if (ball != null ) { ball.setLocation( 100 , 100 ); } |