My first question is the one mentioned in the title. So why can't i write (in my Actor Arrow)
My second question is why do i need the (Stickman) ? I tried it like this:
but it only works if i do it like this:
but what does the (Stickman) do?
1 | World.removeObject( this ); |
1 2 3 4 5 | public int StickmanX() { Stickman stickman = getWorld().getObjects(Stickman. class ).get( 0 ); return stickman.getX(); } |
1 2 3 4 5 | public int StickmanX() { Stickman stickman = (Stickman)getWorld().getObjects(Stickman. class ).get( 0 ); return stickmant.getX(); } |