I am trying to do a camera dead zone on x and y using lerp, so I have a camera object lerping to player.x, player.y every tick. But, when I try adding a dead zone with timed variables, the camera becomes snappy and weird.
This is what I am trying to accomplish: youtube.com/watch
Any ideas would be greatly appreaciated!
Develop games in your browser. Powerful, performant & highly capable.
This isn't perfect, but the basic idea is to use a bounding box that has ScrollTo, instead of the player. The player pushes the box on either side, at the edges. This particular example gets a bit convoluted due to the mirroring, and I didn't add lerp for Y scrolling, but this should be a start.
Thank you! This will surely help me get started.