Pygame - Collisions on the sides of a platform [duplicate]
问题 This question already has answers here : How do I detect collision in pygame? (4 answers) How to detect collisions between two rectangular objects or images in pygame (1 answer) Closed 4 days ago . I am currently trying to make my own platformer on pygame . I have coded the collisions for the top and bottom of the platform so that the player can only jump on top of the platform if they are falling onto it. However, if the player walks into the side of the platform, he snaps on top of it. How