0

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.

Axiumin_
  • 2,107
  • 2
  • 15
  • 24
  • `I have set up the blue blocks to fall, but only one of the yellow blocks falls.` and `I expect both the yellow blocks and blue blocks all to fall but only the blue blocks fall.` contradict one another. Please edit your question to specify exactly what you are currently getting as well as what you are trying to do so that we can better help you. – Andrew Fan Sep 12 '19 at 04:06
  • 1
    A great way to figure out what is causing your issue is to try reducing your code as far as you can while keeping the issue you want corrected. You can find some useful tips on doing so here: https://stackoverflow.com/help/minimal-reproducible-example – Hoog Sep 12 '19 at 18:56

0 Answers0