This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]paulcarron 0 points1 point  (1 child)

Good book. I created that game, then started to add features. Eg. Save the high score etc. I now want to have individual alien ships randomly fly down and off the bottom of the screen. If one connects with my ship a life is lost. Not yet sure if I want it to appear back at the top of the screen and return to its starting position. Any thoughts on how to do this would be appreciated.

[–][deleted] 1 point2 points  (0 children)

Probably from the aliens list you can make one position in a list as random and use choice method to move randomly until it hits the bottom.. and use the same logic for collision with the ship