I'm making a game in python that has user set variables, but to get the correct coords for certain elements within the game I need float values. I used the random.uniform function but you cannot set a step and this is something I need. is it possible and if not is there another way I can achieve what I need.
I have provided what I'm doing below, thank you in advance.
coord = (uniform(self.Player_Movement, (600 - self.Player_Movement), self.Grid_Rectangle), uniform((50 + self.Player_Movement), (600 - self.Player_Movement), self.Grid_Rectangle))
Aucun commentaire:
Enregistrer un commentaire