I am trying to get my frogger so when it is within specific quardinates then it displays my game over class which is a pop-up. I tried to be all smart and I feel like I was decently close, but to no avail, it still didn't work. This is my code and the numbers are just at guess and check right now but how would I make it to work for this? Here is my code.
if (400 <= getX() >= 480 && 66 <= getY() >= 1) { GameOver(); }