I have been making the enemy chase the player, but I keep getting an error which says "cannot find symbol- variable .getX();". I would appreciate any help. Thanks
You cannot call 'getX' on a Class object. It must be called on an Actor object. 'Shark' (evidently) is the name of the class that creates Shark objects; but, it is not the name of those objects created from that class. If only one Shark object is in your world, and it is there at all times any enemy object is in the world, then: