Hi guys.
I've made a simple look ahead camera that has a quick "forward focus" effect when the player is running, but has a slower reset time when the player stops. It seems to work well except when doing a static jump. In that case I want it to behave like when the player has stopped moving, but I can't for the life of me figure out how! Any help would be appreciated.
The way it works is by pinning an invisible box sprite to the player sprite and constantly adjusting the box's width. The box sprite has its origin and one additional image point at opposite ends. That way, it only grows at the direction the player is facing and the window scrolls to the aforementioned image point.
I hope my English makes sense and forgive any mistakes cause it's not my mother tongue!
dl.dropboxusercontent.com/u/14855413/lookaheadcamera.capx