I am trying to check if the same color (image) balloon was hit on the first background was the same color (image) balloon hit on the second background.
If you are still confused, you can refer to this question.Įxplanation of what I want to achieve: So when you hit 1 colored balloon on the first background, you should hit the same colored balloon on the second background, and then when it moved onto the first background again, you hit 2 different colored balloons and so on. Then you shoot 2 balloons on the first background, it changes to the second background where you shoot 2 balloons and so on. On the second background, you hit another balloon and it changes back to the first background. If 1 hit is detected, it moves to the second background. My program changes the background when a certain number of hits(or collisions) is detected. (The balloons are all different colored). The collisions are between a gun, and 7 balloons(images) blitted on the screen. Keep in mind the collisions work perfectly fine. If this does happen, I want it increase the score, if it doesn't, it should return a you_lost() function. I am trying to check if the collision on the first background was with the same image as the collision on the second background.