Have both panorama and scrolling?
Posted:
Fri Aug 21, 2009 9:21 pm
by Hblade
Hey how would I make the background scroll, but yet keep the same effect as a panorama, meaning it moves slower then the screen when you move, in other words, I want the background to scroll but yet, I want it to be just like a panorama
Hmm, ok say heres the panorama effect
- Code: Select all
x = view.x / 1.2;
y = view.y / 1.2;
How the heck can I still have that kind of an effect but with it scrolling O.o
Re: Have both panorama and scrolling?
Posted:
Fri Aug 21, 2009 10:13 pm
by skydereign
Not positive on the specifics, but what you want is for the background to move, but always slower than that of the view? If this is the case, what happens when you are not moving? If you mean you want it to scroll while you are not moving, and when you are still have the panorama effect, then it would be a matter of velocity setting, or using draw. While you move, insert code that moves the background at a certain speed, just slower than that of the actual movement, and when you slow or stop, you reduce it until it is at the satisfactory set. I probably interpreted your question wrong, and if so can you explain further? The two effects are kind of similar, so maybe you could give an example?
Re: Have both panorama and scrolling?
Posted:
Tue Sep 15, 2009 11:27 pm
by tlah
like this? (Sorry, i couldnt get the panorama to mesh, but it works for the demo)
Re: Have both panorama and scrolling?
Posted:
Wed Sep 16, 2009 1:47 pm
by Hblade
Not quite
see when your stuck against a wall, then you'll notice that it still moves with the.. nonmoving cahracter O.o or if you hold both keys down
But thanks anyways