Smooth Zooming Orthello2D

Hey guys. I’m new to the forums, but not new to the game of scripting or game-making, for that matter. Just have never really come down to post here.

Anyway, my issue is I’ve started using Orthello2D for designing a 2D game in Unity, but I am having trouble creating a smooth zoom effect.

I want to do this such that when the player tries to move higher up on the screen, the camera follows him up but also simultaneously zooms out to keep the ground of the level in view, and in much the same way, when the character starts descending to the original height, the camera moves down with it and zooms in as well. Hopefully that makes sense.

I’ve been using OT.view.zoom -= .01; as a mean of zooming out (and += for zooming in), but that produces choppy results. Also, it doesn’t keep the ground in view.

Does anyone have an idea of how to make the zooming in and out of the camera smooth, as well as perhaps some kind of algorithm or trick I should use to keep the ground of the level inside the camera’s view? I’m using zoom because I think that’s the way to go, but I’m up for suggestions.

SIDENOTE: I’m having an issue where when Unity is playing in the game view, the whole screen flickers and parts of the screen are replaced with other things (the inspector randomly flashes to the game view…) Any thoughts on this end would be nice.

Orthello is a pain in the ass… does more dmg than good imo saving you a few lines of code but then makes you double up in so many more places. That being said to accomplish what you want i would say turn off pixel perfect and change the screen size

@ SIDENOTE : I wonder if your bug is related to mine in some way. I get a little flicker when trying to maximize on play. I get an error say something about an Invalid Editor Window Fallback Window.

Do you get any errors when trying to maximize on play? This happens on new projects as well, so I’m hoping it’s a bug and not something related to any editor scripts I have lol.

@KaBKa: I’ll try what you said later today. But if orthello2d isn’t good, what other free 2d tools should I be using? Or would you advise I attempt 2d gaming in Unity3d without any plugins? Because of your comment, I may switch to using just Sprite Manager. Is that advised?

@Black Mantis: My issue occurs regardless of maximized on play or not. But it also occurs regardless of project–even on a new project, it gives me this issue. I’m not getting any errors either.