Custom Camera speed in setCamaraFocus

At the moment the speed at which the camera follows a given sprite in setCamaraFocus can be too slow in some cases. (for our game it is causing usability issues)

It would be great to be able to modify the tracking speed between instantaneous  and  N.

It would also be good to be able to dynamically modify this speed depending upon distance camera has to travel at any given time.

/Steven

At the moment the camera follows non-physics sprites instantaneously, however there is a delay of 1 frame for physics objects. The engine does not have direct access to Corona’s physics simulation and must wait for the sprite to move before calculating where it is and how to get there. The visible result is that the physics sprite will pull away from the center of the screen as it accelerates. I’ll see what I can do about that.

There may be other ways of achieving slower tracking speeds by manually calling moveCameraTo each frame instead of using setCameraFocus, but I haven’t investigated them.

At the moment the camera follows non-physics sprites instantaneously, however there is a delay of 1 frame for physics objects. The engine does not have direct access to Corona’s physics simulation and must wait for the sprite to move before calculating where it is and how to get there. The visible result is that the physics sprite will pull away from the center of the screen as it accelerates. I’ll see what I can do about that.

There may be other ways of achieving slower tracking speeds by manually calling moveCameraTo each frame instead of using setCameraFocus, but I haven’t investigated them.

At the moment the speed at which the camera follows a given sprite in setCamaraFocus can be too slow in some cases. (for our game it is causing usability issues)

It would be great to be able to modify the tracking speed between instantaneous and N.

It would also be good to be able to dynamically modify this speed depending upon distance camera has to travel at any given time.

/Steven

Could you be more specific diablo? In what situations are the camera follow speed to slow? The camera tracking is more or less instantaneous. If it tracked any faster it would overtake the sprite it was tracking.

At the moment the speed at which the camera follows a given sprite in setCamaraFocus can be too slow in some cases. (for our game it is causing usability issues)

It would be great to be able to modify the tracking speed between instantaneous and N.

It would also be good to be able to dynamically modify this speed depending upon distance camera has to travel at any given time.

/Steven

Could you be more specific diablo? In what situations are the camera follow speed to slow? The camera tracking is more or less instantaneous. If it tracked any faster it would overtake the sprite it was tracking.