Hello.
Im remaking the game fishy for a school project. But I need help. The most important aspect of the game is that the bigger fish eats the smaller fish.
But i cant get it to work so im asking you guys for help.
I have a code where I check if my playerfish is intersecting with a computerfish. Then I want my playerfish to check whos bigger. Im trying to do this to see who has the biggest surface(width*heigth). But if i do: int opp=computervis.getWidth()computervis.getHeight(); he will give me the surface of all the objects in the world. How can i get the code to make it that it will only give me the surface of the intersecting object with my playerfish.
I hope i explained it well enough in my bad english and that somebody can help me.
p.s computervis is the name of the greenfootImage which I scale in a different method.