# Side-Scrolling Game Help

**URL:** <https://forum.code.org/t/side-scrolling-game-help/36563>\
**Category:** Coding and Debugging Help\
**Created:** [June 11, 2022, 4:17pm UTC](https://forum.code.org/t/side-scrolling-game-help/36563 "2022-06-11T16:17:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tthompson](https://avatars.discourse-cdn.com/v4/letter/t/a183cd/32.png) [@tthompson](https://forum.code.org/u/tthompson)\
**Post date:** [June 11, 2022, 4:17pm UTC](https://forum.code.org/t/side-scrolling-game-help/36563/1 "2022-06-11T16:17:40Z")

</div>

> **[Check out what I made](https://studio.code.org/projects/gamelab/BKIDwdMcl6uOtj8p2WQ9BgU8ejDS8na4tT5Y-DD1uuA)**
>
> I wrote the code myself with Code.org

This is working fine for my student, but she would like to know if there is a way to code all of the obstacles (variables top and bottom 1-4) as a group to save her time.

---

<div class="post-metadata">

**Author:** ![mwood](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mwood/32/4941_2.png) [@mwood](https://forum.code.org/u/mwood)\
**Post date:** [June 14, 2022, 1:14am UTC](https://forum.code.org/t/side-scrolling-game-help/36563/2 "2022-06-14T01:14:41Z")

</div>

@tthompson,

Your student has good instincts with that question. In looking at the code, I’m guessing that would be very possible and looks like they’ve already started.

Here’s a link to the documentation on creating a group along with some examples. Have them give it a shot and see how far they can get.

We could help debug if they do their best and run into problems.

> **[Code.org](https://studio.code.org/docs/ide/gamelab/expressions/createGroup)**
>
> Anyone can learn computer science. Make games, apps and art with code.

Mike

---

<div class="post-metadata">

**Author:** ![tthompson](https://avatars.discourse-cdn.com/v4/letter/t/a183cd/32.png) [@tthompson](https://forum.code.org/u/tthompson)\
**Post date:** [June 14, 2022, 10:19am UTC](https://forum.code.org/t/side-scrolling-game-help/36563/3 "2022-06-14T10:19:15Z")

</div>

Thank you! That was actually me remixing her project. 🙂 I found the var group code and we are giving it a shot.
