Assume I have these variables:
Code: Select all
camera = {}
camera.x = 0
camera.y = 0
camera.speed = 10 -- this will probably be multiplied by dt
I've tried a few things myself but this seems like a math-based issue, of which I'm not really that great.
Any help is appreciated!, thanks guys.
* on a side note, I've made several updates to the game - which I won't tell because I wan a surprise you guys. YOU KNOW TOO MUCH ALREADY.