We are about to switch to a new forum software. Until then we have removed the registration on this forum.
final float MAX_SIZE = 35000;
final float MIN_SIZE = MAX_SIZE/10;
alienX = mouseX;
alienY = mouseY;
alienSize = MAX_SIZE*mouseY/height;
My goal is to make the variable alienSize be the max size when it ( and the mouse ) is at the bottom of the window and 1/10th the size when it ( and the mouse ) is at the top of the window. I have so far this code which works for the max size but there is no limit to how small the alien can get. any help please :)
Edit: I have to hand this in so no cheating please like having an if statement check for the size or anything