Making background scroll?
I'm trying to scroll and there are two parts I'm trying to make work:
1. I have an active character placed over a background and I'm trying to get the active character to move to the right causing the background behind it to scroll to the left.
Like:
Active Character =========>
Scrolling Background <=============
So far. I've been able to get it to scroll every which way except the way I'm intending, lol.
2. Then I want to assign the movement of the active character to keyboard commands where if I press the left and right keys one at a time rapidly it will cause the active character to run.
Any help will be greatly appreciated.
Re: Making background scroll?
Hi Maximum. On my website I have 2 examples of Parallax Scrolling. 1 with layers and 1 without.
Marv
Re: Making background scroll?
^^^ Yeah, I looked at those before I posted this thread, and I still don't get it, lol.
Re: Making background scroll?
Hey Nivram, taking another look at your example... I think the reason I'm stumped on that is because your example is a lot more complicated than what I'm trying to do.
My scrolling consists of only two parts (One background picture, and one character).
Re: Making background scroll?
Ok, play around with the co-effiecent of your background, but put it on a layer under your character's layer.
Marv
Re: Making background scroll?
The Co-efficient field is greyed out :(
Re: Making background scroll?
I'm going to upload the .mfa next.
Re: Making background scroll?
Here is the .mfa: http://www.box.net/shared/5al3zzojd0
It's weird to me because some commands I've put in caused both the Character and the Background to move in the same direction. I stripped those commands, but it's still doing it for some reason.
I'm totally stumped.
Re: Making background scroll?
I threw this together quickly... I hope it has the information you are looking for.
Frame 1 has step by step instructions for a scrolling background.
Frame 2 is a movement example based on my interpretation of what you wanted to do with running.
View MFA
...
/edit/ I see you posted a .mfa. I'll take a look to see if I was at all close.
Re: Making background scroll?
I couldn't have been further off. Haha! Maybe this will help?
View MFA