I am using
player = pygame.draw.rect(screen, player_color, player_pos, 30, 1, 1, 1, 1, 1)
with
- screen as my surface
- player_color as my color
- player_pos as my rectvalue
- 30 as my width
- 1 as my border_radius
- 1 as my border_top_left_radius
- 1 as my border_top_right_radius
- 1 as my border_bottom_left_radius
- 1 as my border_bottom_right_radius
but whenever it runs it crashes and says "TypeError: rect argument is invalid" and yes I have all variables defined and spelled right, I am using VS Code if that changes anything im not sure i am pretty new to coding.
I was expecting it to make a rectangle with the cords in the player_pos.
player_pos? It has to be pygame.Rect()