thanks, but the only problem is that each instance of the object (in this, it would a cube that the player can collide with) needs to have specific code that will determine if it is touching the player.
let me explain a little more:
I have and image:
# load the cube image
Cube_one = pygame.image.load("Data\Cube_one.bmp")
# I then get its rectangular data:
Cube_one_rect = Cube_one.get_rect()
# load the player image
Player = pygame.image.load("Data\Player.bmp")
# get rectangular data:
Player_rect = Player.get_rect()
now that I have that data, I can access information such as the location of the left side of cube_one on the screen by using cube_one_rect.left ( you can use .left, .right, .top, and .bottom )
the collision would be like so (for the top of cube one):
if cube_one_rect.bottom is >= Player_rect.top:
gravity = False
and so forth.
that's the main idea.
now, I need multiple 'cube_one's. But the only problem is that I would have to write code for collisions of each cube, which would obviously be pain painstakingly long. So, I need instances of, in this case, the cube that would maintain its own rectangular data and be able to support collisions on its own.
sorry if it's a little confusing, but if you have any ideas, please let me know!