public void randomize() { targetY = (int) (16 + FlxG.random() * (208 - height)); if (targetY < y) velocity.y = -SPEED; else velocity.y = SPEED; }
public void randomize() { targetY = (int) (16 + FlxG.random() * (208 - height)); if (targetY < y) velocity.y = -SPEED; else velocity.y = SPEED; }