Change Camera - Quick Engine
Hey, I was using quick engine but I was wondering if there was a way to change the camera position so I can make a side scroller.
Hey, I was using quick engine but I was wondering if there was a way to change the camera position so I can make a side scroller.
"Quick" has a field with a "camera" object. Set the x and y fields to the values you want to be centered on the screen.
update = function()
Quick.camera.x = player.x
Quick.camera.y = player.y
end
If you have a player and you want the camera to follow him .
Also for smooth camera motion, you can use:
Quick.camera.move( player.x, player.y )