Moving pictures when the camera move WTF !
- Login to post comments
Sun, 05/15/2011 - 19:40
I use a depth of 5 and those pictures in my level move when my camera move, they move a little, but enough to be annoying and create holes, because it is a layer to complete a pictures.
Then REMOVE the depth.
InfernoFans | Chest full of porkchops
Well all objects (pictures) have this problem ...
the position of the pictures move a little.
Example I move my camera to the top ingame and :
http://imageshack.us/photo/my-images/607/goo1.png/
the 2 pictures are not attached together.
I move my camera ingame to the bottom and they board one over the other.
Beginner visual artist
Saying exactly what's said in the reference guide :
It also controls the "distance" to the image. Over a limited range (where depth is between -2 to +2) the only apparent effect is which things are in front and which are behind. On a larger scale a parallax scrolling effect can be seen. Objects with large negative depth (-1000 say) will appear to move more slowly around the screen as you scroll, simulating being further away. Objects with positive depth (+200) will be in the foreground, will move faster as you scroll and will appear between the player and the Goo Balls.
So if you want a picture puzzled together with several images give them the same depth. Or at least just make the difference between them very small (0.001).
on the run | keep on running | two-stroke-engine
Ha okay , this can be good also to simulate pictures in a 3D world , but we stay in 2D.
Beginner visual artist