so i am creating a game where the ship you control is at the bottom and and enemies randomly appear and move and the enemies shoot at the player ship and the player ship has to shoot them but i don't know how to get to randomly move but not go past a certain point becuase i dont want them running into the ship at the bottom any help with this would be much appreciated
