I'm trying something similar. What I do is:
On every tick:
- set scale of object to: object.Y/600
This code will scale objects smaller as they are in the background and scale them bigger as they are in the front. You have to adjust the 600 to what looks best for your objects.
Instead of every tick you can use if the object moves. This would save performance. I didn't optimise my code yet.