Hi, I'm trying to create a big fish eats little fish type scenario, where any instance of the fish object will chase smaller instances of themselves.
I currently have it working where if a fish is within 100 pixels of another fish it will chase it and that works, however when I add the condition to compare an instance variable i've created called Weight. It seems to be comparing againts itself instead of the other instance of the object which doesn't give me the result i am after.
I guess what I'm after is how do I get the each fish instance to compare it's own Weight instance variable with the variables of other fish instances within 100 pixles?
Hope that makes sense.