I'm trying to make some objects come towards the camera but it just doesn't feel right... you can check the progress here:
You run by repeateadly hitting the letter Q, and around position 700 the first hurdle appears. But it just doesn't look right. I think that on real life, the hurdle would go slower when it's further away, and when it's closer to the camera, it would go real fast... and now it's doing it the other way around...
Here's the code handling the hurdle movement:
hurdle.scaleX = hurdle.scaleY = (athlete.position - hurdle.position_initial) / 1000; hurdle.y = bg.image.y + (athlete.position - hurdle.position_initial) * 0.4;
Any ideas?? Thanks!!