Hello everyone,
I'm coding a little game in which the player can jump against a box which should then perform an action. I get the object by and then I want to call a specific method of this box, which is called bounce: But when I do it like this, it says "cannot find symbol - method bounce()" although i declared it in the Box class like this:
I'd be glad if you could help me fixing this!
Actor box = getOneIntersectingObject(Box.class);
if(box != null) { box.bounce(); }
public void bounce() { //do some stuff; }