Using Camera zoom in only one of two layers - - Please Help
DanDaMan123
Member Posts: 216
Ok so I have been trying for a ton of time and am very frustrated. I am trying to add a feature to the gameplay where the player presses a button and the game zooms out so that they can see the whole level. I have got it to zoom out but I only want one layer to zoom out. My other layer is the layers with buttons and such (UI) so I want it to stay put. I have the layer unchecked for scrollable but it still goes. I have found a work-around but it doesn't look good.
Thanks for any help you can give
Thanks for any help you can give
Best Answer
-
gyroscope I am here.Posts: 6,598
You won't succeed, with only certain layers zooming if you're using Camera only; this is because Camera is just that: it's "seeing" the whole screen and doesn't differentiate between layers.
A workaround, either: still use zoom out but your layer you want to stay put, have zoom in by the same amount..... or don't use camera zoom, but interpolate on all the actors you want to zoom out, making their widths and heights smaller over time.""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Answers
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
I got a question regarding camera position. Im trying to make it zoom in to display images in a better way (iphone screen is not so big )
This would work as a comic reader, but when I change the camera origin X and Y to the actor (comic image) position X and Y it fix the center of the camera to the Upper right corner of the actor...
Does someone know how to fix that?
PS: The only solution I found is to interpolate camera's origin position to actor self X and Y positions divided by half actor weight and height.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS