The title basically explain it all. Here's the code for the pygame.draw.rect:
stand = pygame.draw.rect(screen, green, (spike_x + 900, 400 - player_y + 476, 500, 500), border_radius=15)
I want the stand
to be able to collide with the player. The player is using a rect collision box:
player_collision = player.get_rect(topleft=(player_x, player_y))
I've tried to use if player_collsion.collidepoint(stand):
, but it doesn't work. When I try that, it says TypeError: argument must contain two numbers