Ask your own question, for FREE!
Computer Science 23 Online
Vocaloid:

python (pygame) question. I am trying to get the aliens to start at the top right corner of the game but it keeps starting them at the top left. I've tried to change the starting coordinates in alien.py without any luck. https://github.com/PockyPepero/Python-Exercises/blob/master/alien_invasion%20-%20sideways/alien_invasion_sideways.py

Vocaloid:

Serious, informed help appreciated. Spam/harassment will be removed.

Vocaloid:

nvm, I got it, I needed to redefine how I placed the alien in _create_alien(), changed line 145 in alien_invasion_sideways.py to alien.x = self.settings.screen_width - (alien_width + 2 * alien_width * alien_number) to have it start subtracting coordinates from the right side of the screen rather than add to the left

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!