Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

Hi dev_dwarf. I've bought your advanced tutorial on sprite stacking for 2$=D and I was wondering if it's possible to make a zoom function for the camera? To scroll the view in and out. I realize that it's not real 3D, and this technique has it's limits, but I'm still curious to know if it's possible. I hope it's possible even with Isometric view (and not perspective).

I tried to reach you on discord but you don't accept DM's from strangers =P

Hello,

Zooming can be accomplished by changing the width and height of the camera. It sounds like you want an easy way to this with a "zoom" variable. The easiest way (if you're working off of this exact code) is to multiply `new_width` and `new_height` by the zoom variable every step, so that changes to the zoom instantly effect the size of the view.

Hope that helps.

Thank you so much. I'll try that =) and yes, I'm working off your project. I'm thinking about making it into a template.