subject

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
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:30
To become an audio technician, the most successful tactics might include the following. (select all that apply). learning how to persuade other people gaining different types of experience in audio technology learning as much as possible about art history establishing a reputation as a reliable professional
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Anetwork security application that prevents access between a private and trusted network and other untrusted networks
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Which one of the following functions is not available on the autosum tool? sum average if max
Answers: 3
question
Computers and Technology, 24.06.2019 21:30
How do i copy and paste equations and pictures like math graphs, to post on this site to get my questions answered?
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
Mathematics, 01.02.2021 21:10
question
History, 01.02.2021 21:10
Questions on the website: 13722361