-
Zooming trouble
Yep, me again, better get used to me, it's gonna be a long way till I finish my game.
So the problem is that I'm using zoom on this active image object, but when it's zooming it seems as if it's expanding from the very top left of it's self, which causes the object to just move around where I don't want it to. Is there a way to sort of change this spot (according to which it's expanding)?. I want to move that spot to the center of the frame so that it looks like actual zoom. I tried doing this by moving the object's hotspot to some other object that would stay at the middle of the frame but zooming doesn't appear to rely on the hotspot. Any ideas?
-
Re: Zooming trouble
Scaling centers on the hotspot. Just set the hotspot of the object to the center of the object.
-
Re: Zooming trouble
Hey, you mean use "set size"? Because active image objects don't have a scale option.
-
Re: Zooming trouble
http://loadingup.lo.funpic.de/uploads/4653hotspot.PNG
Build it in like that:
[events]
*Start of Frame
-[obj_picture]: Set hot spot to center
[/events]
-
Re: Zooming trouble
Hi Looki, yes I tried that too, but I want it to zoom according to the middle of the frame, not the middle of the object. Like I said I tried putting the hotspot on some other object that stays in the middle of the frame all the time, but it didn't work.
Popcorn i tried your suggestion too, now it seems to respond to the hotspot changes that I make, but it still won't accept the custom coordinates from another object.
-
Re: Zooming trouble
-
Re: Zooming trouble
Ok someone must know how to do this. I'm trying to make the zoom of the object to be depended on the center of the screen, no matter where the actual object is.
-
Re: Zooming trouble
Like this example I made some while ago?
http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Board=5&Number=13518&S earchpage=1&Main=1847&Words=zoom&topic=0&Search=tr ue#Post13518
It's using the normal Active Object, not the Active Picture Object, but you should get the general idea :)
-
Re: Zooming trouble
Hey popcorn I saw your file, but that much I can do really. So I made a small video on a 3d program to show you guys the problem and what I want. It's half an mb, so please watch it, ok?
watch it here
-The first take, shows just an object at the center of the window, being zoomed.
-In the second take, I've moved the object from the center. When I zoom it, it zooms incorrectly. This is NOT how I want it to zoom. This shows my problem.
-The third take shows how I want it to zoom. It focuses on the point that is at the center of the image before zooming and remains there all throughout the zoom. Do you understand what I'm saying?
So if I could make the objects hotspot remain in the middle of the screen no matter where the object is (even if out of view) that would probably solve my problem . Like I've said before, I tried to asssign the hotspot to an invisible object that would stay in the middle all the time, but it didn't work. I hope somebody out there is still following me :)
-
Re: Zooming trouble
Seems to me your problem isn't the zooming (as it zooms just fine ;) The problem is you want to simultaneously adjust its position as it zooms to get a certain effect that I still don’t quite grasp.
I know to you it must seem that what your after is obvious, but if it were, you'd likely have been given the solution by now. :(
What logic did you use with the 3d program to get the zoom behavior to act as you wanted? where you zooming the image itself, or bringing the camera in on the entire plane?
Perhaps if you describe your desired result and the issues you’re trying to avoid more specifically....
In your video example, the third "take" could be created by putting its hotspot at the lower-right, no?