# Scrolling Parallax Background

**URL:** <https://forums.unrealengine.com/t/scrolling-parallax-background/28667>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [April 28, 2015, 3:09pm UTC](https://forums.unrealengine.com/t/scrolling-parallax-background/28667 "2015-04-28T15:09:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_f67161d8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f67161d8](https://forums.unrealengine.com/u/anonymous_user_f67161d8)\
**Post date:** [April 28, 2015, 3:09pm UTC](https://forums.unrealengine.com/t/scrolling-parallax-background/28667/1 "2015-04-28T15:09:53Z")

</div>

Good day, I’m currently trying to make a Flappy Bird like game. However, I’m having some issues with the main game’s scrolling background. I have four different layers for the background, and I made the blueprint for them to move at a different speed. Each layer consists on two sprites with an element of the background side by side, one of them attached to the other so I only have to move the parent layer. The issue is that whenever I play the game, the layers start overlapping each other. For some reason it doesn’t happen when I simulate the game. Below I’ll leave two gifs with the game running and simulating for clarity.

Simulating (No overlapping)

> <https://gfycat.com/clutteredoblongeasternglasslizard>

Playing on viewport (Layer overlapping)

> <https://gfycat.com/distanticyalpinegoat>

What I’ve tried so far:

- Set explicitly the locked axis
- Distantiate each layer even more on the Y axis
- Detach sprites and move them separately (Not using their parent’s relative location)

Thanks

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f67161d8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f67161d8](https://forums.unrealengine.com/u/anonymous_user_f67161d8)\
**Post date:** [April 28, 2015, 7:46pm UTC](https://forums.unrealengine.com/t/scrolling-parallax-background/28667/2 "2015-04-28T19:46:58Z")

</div>

Update:

I was able to solve this by setting a different rendering priority for each layer, as the sprites forming them were translucent.

 ![ede3fd689a7ff3becc5db40ef017c4bb4361ad04.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/d/e/ede3fd689a7ff3becc5db40ef017c4bb4361ad04.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4ad36f5d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4ad36f5d](https://forums.unrealengine.com/u/anonymous_user_4ad36f5d)\
**Post date:** [July 1, 2015, 1:22pm UTC](https://forums.unrealengine.com/t/scrolling-parallax-background/28667/3 "2015-07-01T13:22:16Z")

</div>

Hi, how did you make the background scroll?
