Have both panorama and scrolling?

Non-platform specific questions.

Have both panorama and scrolling?

Postby Hblade » Fri Aug 21, 2009 9:21 pm

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
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Have both panorama and scrolling?

Postby skydereign » Fri Aug 21, 2009 10:13 pm

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?
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Have both panorama and scrolling?

Postby tlah » Tue Sep 15, 2009 11:27 pm

like this? (Sorry, i couldnt get the panorama to mesh, but it works for the demo)
Attachments
panoramademo.zip
(86.81 KiB) Downloaded 59 times
User avatar
tlah
 
Posts: 66
Joined: Sun Apr 06, 2008 12:10 pm
Location: In your head, readin' ur mind
Score: 2 Give a positive score

Re: Have both panorama and scrolling?

Postby Hblade » Wed Sep 16, 2009 1:47 pm

Not quite :P 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 :D But thanks anyways
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron