# Creating a shooting game like Gradius V (newbie): side-scrolling game

**URL:** <https://forums.unrealengine.com/t/creating-a-shooting-game-like-gradius-v-newbie-side-scrolling-game/255141>\
**Category:** Community & Industry Discussion\
**Tags:** unreal-engine\
**Created:** [October 10, 2021, 3:16pm UTC](https://forums.unrealengine.com/t/creating-a-shooting-game-like-gradius-v-newbie-side-scrolling-game/255141 "2021-10-10T15:16:00Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [October 10, 2021, 3:16pm UTC](https://forums.unrealengine.com/t/creating-a-shooting-game-like-gradius-v-newbie-side-scrolling-game/255141/1 "2021-10-10T15:16:00Z")

</div>

I’ve just started to learn Unreal Engine 4.26.2.

If I want to create a game like Gradius V: a game that the level moves from right to left. How can I do to move the background (or level)?

Yes, I know. I have no idea about this. This is why I say: “move the background”. But, as player, this is what I see.

How can I do it (move the level or background)?

I think that there will be a static camera and the level will be moving from right to left. Or maybe the camera will be attached to the space ship and that is, I don’t have to do anything special.

---

<div class="post-metadata">

**Author:** ![Ayylemonz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ayylemonz](https://forums.unrealengine.com/u/Ayylemonz)\
**Post date:** [October 11, 2021, 3:41am UTC](https://forums.unrealengine.com/t/creating-a-shooting-game-like-gradius-v-newbie-side-scrolling-game/255141/2 "2021-10-11T03:41:22Z")

</div>

make the background an Actor and add logic to the Actor to move

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [October 12, 2021, 8:42am UTC](https://forums.unrealengine.com/t/creating-a-shooting-game-like-gradius-v-newbie-side-scrolling-game/255141/3 "2021-10-12T08:42:41Z")

</div>

I would think you would need to have the camera move itself (separate from the player) on the Y+ at a CERTAIN SPEED, set up a cube (set to hidden in game) and place it far left (inside camera BP), that way it will “drag” the ship when / if player is against it, I guess conversely you also need one far right to prevent going too far right, heck then I guess also up and down too lol, a boundary zone of sorts.

When the end of level is reached and or enter miniboss fight, set a branch with a boolean variable to STOP your camera advancing and force the player to move only in the on screen zone.

“Yes, I know. I have no idea about this. This is why I say: “move the background”. But, as player, this is what I see.”

You are not alone, I have been asking many questions myself lately about camera actors.

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [October 14, 2021, 7:07am UTC](https://forums.unrealengine.com/t/creating-a-shooting-game-like-gradius-v-newbie-side-scrolling-game/255141/4 "2021-10-14T07:07:19Z")

</div>

Here is something that might be a start for you for this.

Third person template, delete all but the floor and scale it to make little islands (see video below) or blocks for player to jump on, make a blueprint (actor), go into it - add a camera - go head and drag and drop it over scene root to make it the new scene root, then with it still selected add a cube so it will be a child, scale and size and place it as you desire.

 ![Image4](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/1/61d85b373b85d124f08e605d0f443a3b346ccdc8.jpeg)

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [October 14, 2021, 7:08am UTC](https://forums.unrealengine.com/t/creating-a-shooting-game-like-gradius-v-newbie-side-scrolling-game/255141/5 "2021-10-14T07:08:47Z")

</div>

Here is the level blueprint, the two highlighted places is how you can set “speed” of the camera scroll.

 ![Image3](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/9/d953949500e2db2f7bbfb8381d4f85f14f447117.jpeg)

---

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [October 14, 2021, 7:20am UTC](https://forums.unrealengine.com/t/creating-a-shooting-game-like-gradius-v-newbie-side-scrolling-game/255141/6 "2021-10-14T07:20:29Z")

</div>

Wow, that’s amazing. Thanks a lot for your answer, it will help me a lot.

---

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [October 14, 2021, 7:21am UTC](https://forums.unrealengine.com/t/creating-a-shooting-game-like-gradius-v-newbie-side-scrolling-game/255141/7 "2021-10-14T07:21:41Z")

</div>

Wow, thank you. This is what I need, I template to start with.

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [October 14, 2021, 7:32am UTC](https://forums.unrealengine.com/t/creating-a-shooting-game-like-gradius-v-newbie-side-scrolling-game/255141/8 "2021-10-14T07:32:59Z")

</div>

Here is the video, you can see the effect when the invisible wall smites the player from behind it quickly places him ahead in steps, I wonder how to make that wall just smoothly scrape the player forward. Hopefully someone knows why that is doing that and how to fix it.

[https://vimeo.com631729819?from=outro-local](https://vimeo.com631729819?from=outro-local)

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [October 14, 2021, 7:34am UTC](https://forums.unrealengine.com/t/creating-a-shooting-game-like-gradius-v-newbie-side-scrolling-game/255141/9 "2021-10-14T07:34:42Z")

</div>

Yw, glad to help, you can watch that video I just uploaded and see how I layed out the stuff in the world.

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [October 15, 2021, 8:07pm UTC](https://forums.unrealengine.com/t/creating-a-shooting-game-like-gradius-v-newbie-side-scrolling-game/255141/10 "2021-10-15T20:07:14Z")

</div>

Bump, any ideas how to fix that issue with that wall instantly stepping the player and not smoothly pushing him forward?
