-
Re: Zooming trouble
Keokeo, I think that's exactly what my example does. Check it out again, you can move the Center object around in the frame editor to select where the zoom will center.
The text in my example that says "ZOOM" is just alot of small objects. When zooming, they are repositioned according to their original distance from the zoom-center.
-
Re: Zooming trouble
-
Re: Zooming trouble
Well you are both right. Yes HolyMonkey it was mostly a reposition sort of thing, the zooming was fine, I'm too noob to tell the difference :(
Popcorn, I explored your example a little more now, yes you are right, there's more to it than meets the eye. I'm trying to replicate what you did right now. Let's see..
-
Re: Zooming trouble
Well I'm back and guess what? I'm still stuck. I thought this again and again after I replied the last time and I came to the conclusion that Popcorn and HolyMonkey were not right after all. Anyway.
So I have a question now. Is it possible to have two hotspots for one object that will be used for two different functions? One for positioning and one for the zooming?
-
Re: Zooming trouble
No, there currently no way to have two hot-spots, but it shouldn't be too hard to get around that limitation.
Can you explain the exact logic you want to use. what exactly do you want to happen? The animation you made doesn't explain enough... :(
-
Re: Zooming trouble
Hey HM. I made an example mmf2 file to show you the problem .Please excuse the trashy graphics, I've exchanged them with the real ones. My game doesn't feature a scope either. Anyway get the file:
http://www.fileupyours.com/files/76255/ex%20zoom.zip
(Please redirect the objects to the pics in the file if you have to, I'm not sure how it works:
Active picture = Background
Active picture 2 = Scope)
Use arrow buttons to move around and +/- to zoom in and out. Assume this is a scope at the middle, when you try to zoom do you see what the problem is? It should zoom in according to what's at the center of the scope and keep that way. But what's at the center of the scope is constantly changing since you move around all the time. So the problem is, now the background seems to sort of slide away when you zoom.
-
Re: Zooming trouble
At a quick glance, it seems to me what you want is for the zoom to always use the center of the "crosshair" as the central point (hotspot) for the zoom. I'm also guessing that you may be zooming multiple objects at the same time, and they must all zoom as though they are all on a single plane.
This could indeed be tricky...if my assumptions are correct.
However, do you know about the Viewport object by Andos. This extension allows you to zoom in or out on a portion of the frame (read as all the objects at once instead of zooming all your objects individually) This might be able to do what you're after with a better frame-rate and much more easily than scaling everything on it's own.
If this is indeed what your after, because it zooms in on everything as though its one single image, there will be no need to reposition anything or mess with hotspots.
I suggest you look for it and example files.
good luck
-
Re: Zooming trouble
Finally, somebody knows what I'm talking about. Yes, what you said is what I'm trying to do. Unfortunately I'm using the demo verion so I don't think I can use extensions, which sucks. I guess I really need to buy the program. I wish I knew if the Viewport object will actually do the trick. Thanks for taking the time :)
-
Re: Zooming trouble
It can be used to zoom in on any visible part of the frame...and tricks can be used to make it even zoom on stuff not in the frame..(when used inm conjunction with the subap extension.)
The full (non-demo) version of the program is well worth getting. And, as you likely noticed, the comunity is quite helpful. The extensions make MMF2 sooo much more powerful and easy to do cool stuff with.
good luck with your endeavors.