My goal is to scale the camera in general so the viewing angle will be smaller. It is centered on the player but the camera is too far away. Someone suggested a zoon parameter but it only increases the size of the player and all other aspects aren't affected. Pushing and Popping doesn't work either.
How can I scale my tilemap within the camera
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: How can I scale my tilemap within the camera
Without looking at your code I recommend using some camera lib to handle this:
https://github.com/love2d-community/awe ... e2d#camera
https://github.com/love2d-community/awe ... e2d#camera
My boat driving game demo: https://dusoft.itch.io/captain-bradley- ... itius-demo
Re: How can I scale my tilemap within the camera
You're passing the zoom parameter to currAnim:draw - but this function only draws the player.
Instead, try passing it to the camera. Use cam:zoom( 2 ) or cam:zoomTo( 2 ) to make everything twice as zoomed.
Instead, try passing it to the camera. Use cam:zoom( 2 ) or cam:zoomTo( 2 ) to make everything twice as zoomed.
Please look at the code, it already uses hump.dusoft wrote: ↑Mon Sep 18, 2023 11:08 am Without looking at your code I recommend using some camera lib to handle this:
https://github.com/love2d-community/awe ... e2d#camera
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 10 guests