I hope your objects A, B and C are actually 3 instances (copies) of the same sprite?
Anyway, you need to post your code or project file.
Thank you very much for your help, everything worked out for me. I'm trying to make inventory for my game this way. I have one more question. Is there any way to sort objects A B C that are already in places 1 2 3. I would like to make it so that if one of the objects disappears from its place, the rest are sorted and take the missing place. Could you please help me, is there any way to do this?