I currently have a fishing game I'm making, and if the Y of your cursor matches that of the Y of the fish it moves the fish closer to being captured.
But its a little *too* precise. The game otherwise works perfectly,
Is there anyway to check for a radius of a variable? As in, say the fish is at Y10, and my variable is at Y15, how would I tell the conditional branch to fire if my variable is within X of the variable I'm trying to match?
But its a little *too* precise. The game otherwise works perfectly,
Is there anyway to check for a radius of a variable? As in, say the fish is at Y10, and my variable is at Y15, how would I tell the conditional branch to fire if my variable is within X of the variable I'm trying to match?