AZE is a engine that provides automatic zooming and tracing of any number of spots. It is following the concept of cameras similar to the one used by the Advanced Camera object. Any one camera always assures to enclose all spots passed to it by zooming and positioning while never going beyond the layout's borders when completely zoomed out, as long as the aspect ratios of the display and the layout match. If they don't match and completely zoomed out, AZE compensates by aligning three sides to the display and only the left or the top side goes beyond the border. At least one spot is needed per cam.
Features:
- Unlimited number of cameras may be created/destroyed at any one time
- Unlimited number of spots may be passed to a camera
- spots may represent everything, a single point or a dozen of physics objects. Everything that can be represented by the four parameters X, Y, Width and Height
- spots may be of any size, even or uneven aspect ratio
- limit the maximum zoom to any number
- offset to focus not exactly centered between any number of spots
The two files differ. Auto Zoom Engine.cap is a cleaned and differently organized cap, while Auto Zoom Engine debug.cap is a documented demo. Both are fully documented on the engine itself.
[EDIT] Damn, I knew this would happen... Two things:
First, I forgot to mention anywhere in the documentation, that you have to set the layout AZE is working with to unbounded scrolling. (Layout Properties, tick "Unbounded scrolling"). This is done in the caps, but if you add new layouts you have to think of that.
Second, I was playing around with local AZE sprites when I created the two caps and didn't set it back to global. It is neccessary to set the sprite "AZE" to global (Sprite Properties, Common, tick Global) Please do so before adding new layouts or AZE refuses to work.