- Home /
Slippedy Slide to Images....
Hi smart unity people
I'm an (almost) complete newbie to Unity but willing to give it a go if someone can point me in the right place. I'm making a kind of "slide show" of several 2D images with 3D animations happening in front of them.
I'd like the view to move from one image to the next smoothly (a bit like the sliding transition of a digital book). Right now I have the camera view set to Orthographic, so thought I could add a script to an object that moves the camera from point A to point B. Needless to say this looks a bit messy and not smooth at all. Does anyone have any suggestions for a smoother, more polished transition between images? I'd love to be able to replicate a transition like this: http://buildinternet.com/project/supersized/slideshow/3.2/demo.html. Also thought about making a GUI for this.
(I'm using Unity because there are a number of 3D animations in my slide that play on view or are triggered).
Heya! Welcome to Unity. :P Everything's relative, so moving the camera can yield the same result as moving the image; if it's jerky it has more to do with how you're moving it than it has to do with the fact that it's the camera that gets moved. Can you provide more detail on how you've coded the movement? Notice, by the way, that the sliding motion in the example you posted accelerates in the beginning and decelerates in the end, that is, the motion is dampened there. Are you doing the same? (Using $$anonymous$$athf.SmoothDamp or $$anonymous$$athf.Lerp, for instance)
Well, I'm a bit stuck as far as how to code it. Right now I have a button that triggers an animation for the next image to slide into view - a bit clumsy. The image (on a plane) is located in the script with a tag. Any kind of suggestions would be helpful. I've been looking at the iTween library but not sure where to apply the movement.
Post your existing code as an update to your question; it will serve as a guideline for people's efforts in helping you. The programmers on this site often taylor their code samples to people's posted code when they provide snippets of code to help.
You can also move the camera's gameObject with iTween (http://itween.pixelplacement.com/index.php) in some pretty smooth movements, just look up some tutorials on how people use iTween to move their camera.
Your answer
![](https://koobas.hobune.stream/wayback/20220612211140im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Blurry Texture Help 5 Answers
Creating a next and previous Tutorial 1 Answer
How to change button image on click 2 Answers
make game work on older iphone 1 Answer