I am trying to create a camera system similar to the one described on this blog post.
If you look at that post it shows the camera system they have created it is similar to super mario world and various other "fast" platform games camera systems.
I know how to lerp a camera and I can figure out most of that portion my problems comes with the way to implement the "smart" camera in the link i posted it shows that the player collision box has a "camera box" around it that only moves when the player is at the edge of the box if the player is moving right the box will also move right when the player reaches the edge of the box, upon turning left the camera wont move until the player box reaches the left edge of the box.
now here is my problem, without any of the camera programming how do i just get the "camera" box i make to follow and move with the player in the way shown in the video.
i have tried using 8 directional behavior and having it have high acceleration and deceleration to no avail, the box just zooms past the player, i have had similar camera ideas before i saw this video but none of the methods i played with worked well.
I am just asking about the box movement but if you want to help me more with the camera functions i would appreciate it.
camera control has been a large pain i have dealt with since i started on C2 i can never have it move quite the way i want it to and this box movement seems like an amazing solution but i cant get the camera box to follow the player box sprite at all and its quite frustrating.
to make sure people know what i am talking about look at this video (its also on the blog post which details it in more depth as well as general camera behavior) and pay attention to the first minute or so, where the player has a blue box around them showing how the camera functions.
I figured it out nevermind, i just needed to take a break and comeback to it anew.