Slight delay before camera catches up to the player, how?

Haha, sorry. Should have made it clear in my first post. This is a side-scroller. After spending a few more hours trying to get it right I managed to solve the problem. The fact that I spent 2 days on this issue is embarrassing in regards to the solution itself.

As you can see in the img below. The only thing I had to do was to “set the playback position”.

This basically solved it. Now it plays the track from the start then resets when my char stops. And you’re right, using a tick here would be best as I need this to be checked constantly. I will most likely change this as well. Though now I have another issue. With this setup the player will be able to nudge themselves off screen, why? Because the camera only moves when the char is in a state of “Moving” for a few moments. Nudging yourself will move the char but not the camera…sigh

I need to make it so that the camera, as soon as it starts moving, completes its objective which is to match the char in Y axis. Right now it immediately stops moving when the char stops moving. Solution is most likely quite simple, I just haven’t figured it out yet.

Also, yes. The delay or lag, as its called, on the camera boom is quite nice but that moves the camera as soon as I nudge the char which isn’t what I’m after. All I need to do now is to tinker with the formula and I think I should have it. Will update this post with the complete code once I’ve gotten it perfect. Still need to find a solution the aforementioned issue that arose after solving the first problem.

1 Like