Inventories again

ive been reading up on this. Not* too* complicated, but I was wondering, how do I create an inventory in a game that has a moving backround instead of a moving character. That means, at one point the objects you can collect are moving and at another point, when they are in your inventory they dont move. I cant figure it out without changing like half the movement code. Thanks