Ignition and jpg zooming

BlitzMax Forums/BlitzMax Programming/Ignition and jpg zooming

Frank VS(Posted 2013) [#1]
Does anyone know how to get ignition to zoom in on a jpg? I'm using BlitzMax for a game and want to be able to zoom in on a world map in order to handle user turn game movements.

Thanks,


Kryzon(Posted 2013) [#2]
From the Ignition feature list on their website there's one particular feature that is the ability to "zoom/rotate and fade an entire screen."
So you know that it is possible, and it's somewhere in the API. It's just a matter of finding it.

Ignition for BlitzMax does not have a public documentation, so it's difficult to see which API functionality to use.
The Monkey version does have online documentation (accessible here), and I imagine it is similar to the BlitzMax version.

From some searching around, you need to use the ZoomX and ZoomY fields of your iPlayfield object. They are float value fields and both start as 1.0. So if you want to zoom in, you will most likely have to use a value of 2.0 for both fields for a 2x zoom, etc.

You may also contact Playniax for support: http://www.playniax.com/support.html


Redspark(Posted 2013) [#3]
There are examples of how to use the framework stored in the doc folders of the module. Perhaps one of them might give you some ideas.