Trying to find a way to zoom the camera. Need help.

Brodal

  • Posts: 5
Hi there!

My problem is that I'm creating a game with pixel perfect graphics and the size of my sprites and backgrounds and such are very small. Because of this I'm in need of scaling everything up by a lot. I can't seem to find a way to do this with Stencyl. I could resize all my sprites in my image editing softare, but that would lead to less sprites fitting on the same atlas, which would be bad for performance. Therefore I'm looking for ways to zoom everything. Usually in other engines its as simple as just changing a zoom property in the camera, but that does not seem to be the case here. Even if the scale thing is solveable by changing the image sizes, not being able to zoom the camera correctly is a huge restriction. Any help would be appreciated!

So my question is, is there a way to zoom the camera in? And how could I accomplish this?

« Last Edit: March 23, 2014, 06:37:13 am by Brodal »

froz

  • Posts: 250
You can change scale in settings. I have never used that though, so I'm not sure how it works.

Brodal

  • Posts: 5
Thats not really what I am looking for. I am looking for functionality that works the same way as when a camera zooms in or out.

froz

  • Posts: 250
Ah, so you want to zoom in/out dynamically during game? You can try the behaviour "zoom scene" from stencylforge. But again, I haven't used it, not sure how that works.

Brodal

  • Posts: 5
Both that and just making everything bigger even when not running, so that 8x8 tiles could be made into 32x32 sizes and such. And im wondering if that is doable without the fixed sizes when importing? ( the 1x, 2x, 4x ). The fixed sizes does not seem to do anything for me, theyre not changing the the size or anything. Thats why im wondering. Also i tried the zoom scene behavior, it didn't seem to do anything either.