![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 25.05.2021 04:40 ashcormu11
I'm getting an error when I try to add collision to the cube. How do I fix it?
The code is attached as a .txt file.
Error:
Hello from the pygame community. https://www. pygame. org/contribute. html
Traceback (most recent call last):
File "main. py", line 185, in
ballplay. update()
File "main. py", line 101, in update
self. check_collision()
File "main. py", line 91, in check_collision
if cubeplay. collide(self. rect. midtop) or cubeplay. collide(self. rect. midbottom): self. vy = -self. vy
TypeError: collide() missing 1 required positional argument: 'y'
![ansver](/tpl/images/cats/User.png)
Answers: 1
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 15:30
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
![question](/tpl/images/cats/informatica.png)
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 13:30
Font size, font style, and are all aspects of character formatting.
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 19:30
2. fluorine and chlorine molecules are blamed fora trapping the sun's energyob forming acid rainoc producing smogod destroying ozone molecules
Answers: 2
You know the right answer?
I'm getting an error when I try to add collision to the cube. How do I fix it?
The code is attached...
Questions
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 08.02.2021 09:10
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/ap.png)
Advanced Placement (AP), 08.02.2021 09:10
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/fizika.png)
Physics, 08.02.2021 09:10
![question](/tpl/images/cats/mat.png)
Mathematics, 08.02.2021 09:10
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/fizika.png)
Physics, 08.02.2021 09:20
![question](/tpl/images/cats/istoriya.png)
History, 08.02.2021 09:20
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/istoriya.png)