# Moving background with character

**URL:** <https://forum.kirupa.com/t/moving-background-with-character/64058>\
**Category:** Uncategorized\
**Created:** [September 12, 2004, 11:45pm UTC](https://forum.kirupa.com/t/moving-background-with-character/64058 "2004-09-12T23:45:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![saint\_cleve](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@saint\_cleve](https://forum.kirupa.com/u/saint_cleve)\
**Post date:** [September 12, 2004, 11:45pm UTC](https://forum.kirupa.com/t/moving-background-with-character/64058/1 "2004-09-12T23:45:55Z")

</div>

what i am trying to do is get the background to move with the character

i checked out a few tutorials…and they kinda helped…but not enuf

heres the deal…i have a character that can fly…and when the character goes upward…thebackground moves down to expose sky…then eventually black space with stars…

does that make sense?

also i want the background to stop…like when the background ends…

help me please

ps…the character moves with the arrow keys…and MX2004…or MX…whicher…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 13, 2004, 8:51am UTC](https://forum.kirupa.com/t/moving-background-with-character/64058/2 "2004-09-13T08:51:28Z")

</div>

try this:  
make a movieclip with 2 layers.  
in both put the background. Motion tween so that layer 1 is like ground to space and  
layer 2 is space to ground. you might need to show hide the upper layer for this.  
now use this as the background so the ground is visible. all you need to do is to “gotoAndPlay();” at the appropriate frame and show of hide the upper layer for the correct motion.

i hope you know how to fly the character.

hope this helps

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 13, 2004, 8:53am UTC](https://forum.kirupa.com/t/moving-background-with-character/64058/3 "2004-09-13T08:53:48Z")

</div>

hmmm…that sounds like it might work…ill give it a try later on in the day…

its 5:00 am where i am…and i need to get to sleep sometime soon…
