If I wanna say that if my actor eats something the world should add the object again.
I could say:
But i wanna add a new Leaf too.
How could I ?
if(eatLeaf()) { //as example x = x +1 ; Leaf leaf = (Leaf) getOneObjectAtOffset(0, 0, Leaf.class); leaf.setLocation(x, y); }