I want there to be two different colored blocks falling from the top of my screen. I have set up the blue blocks to fall, but only one of the yellow blocks falls. When I'm finished with the game, two different things will happen depending on which color block the player collides with. anything with _two is the yellow block.
I'm new to coding, so I don't know if I'll explain this right but I've made the two different blocks, and tried to create different update_enemy_positions but the yellow blocks are stuck at the top of the screen.
I've noticed that in the part where i define the update_enemy_position
and update_enemy_position_two
, whichever is defined first is the one that runs correctly.
Also, I'm sharing the entire code because I'm not sure where the problem is.
https://github.com/CaseyGibson44/firstgame/blob/master/copyofcopy.py
I expect both the yellow blocks and blue blocks all to fall but only the blue blocks fall.