I need a sprite to get bigger as it gets closer to the bottom of the layout, simulating a car driving towards you from the horizon. Sort of a 3d illusion.
I've tried some stuff, but its clearly wrong lol.
Every .1 seconds --> set pos to Enemy.y
pos < Enemy.y --> set size to (Enemy.Width + 1, Enemy.Height + 1)
This works somewhat, but they don't ever stop growing really, and they grow at a bad rate. Its just not right lol. I'm sure there is a simple way to do this, or some math to apply. Any suggestions?
Thanks.