I want to smoothly scroll from the original viewport point, to 3616, 1568
I know theres a way to do it with lerp and scrollx/y but i just cant figure it out
So yeah how do i smoothly scroll quickly to 3616, 1568.
On every tick: Set scroll x to lerp(scrollx, 3616, 4*dt)
Same with the Y scroll.
You can change the last value 4*dt to make it faster or slower.
I've learned that lerp with dt is technically NOT framerate independent. Just so you know.
construct.net/en/blogs/ashleys-blog-2/using-lerp-delta-time-924
Develop games in your browser. Powerful, performant & highly capable.
thx man, didnt realize i had to do it every tick