# Platform tutorial with no scrolling background?

**URL:** <https://forum.kirupa.com/t/platform-tutorial-with-no-scrolling-background/265386>\
**Category:** programming\
**Created:** [July 8, 2008, 12:48pm UTC](https://forum.kirupa.com/t/platform-tutorial-with-no-scrolling-background/265386 "2008-07-08T12:48:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amymation](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@Amymation](https://forum.kirupa.com/u/Amymation)\
**Post date:** [July 8, 2008, 12:48pm UTC](https://forum.kirupa.com/t/platform-tutorial-with-no-scrolling-background/265386/1 "2008-07-08T12:48:42Z")

</div>

Hi,  
I’ve been looking at Nathans platform tutorial which is very helpful but What I want is a non scroll game so I’d need to change the code alot can anyone help me out?  
Thanks amy.

[Amymation@hotmail.co.uk](mailto:Amymation@hotmail.co.uk) \<— Add me if you can help and you need more detail  
AIM: AmymationGirl

---

<div class="post-metadata">

**Author:** ![bluemagica](https://avatars.discourse-cdn.com/v4/letter/b/a4c791/32.png) [@bluemagica](https://forum.kirupa.com/u/bluemagica)\
**Post date:** [July 8, 2008, 4:11pm UTC](https://forum.kirupa.com/t/platform-tutorial-with-no-scrolling-background/265386/2 "2008-07-08T16:11:38Z")

</div>

huh…it is a looooot simpler to make a non scrolling platformer, than the one with scrolling…from your question the only thing i feel is that, you haven’t actually understood nathan’s tutorial, and if you go about making things without understanding them, then it is same as asking another person to make it for you!

I believe you should try to understand the tutorial first, and ask for help in understanding it, if you need!

---

<div class="post-metadata">

**Author:** ![Amymation](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@Amymation](https://forum.kirupa.com/u/Amymation)\
**Post date:** [July 9, 2008, 9:19am UTC](https://forum.kirupa.com/t/platform-tutorial-with-no-scrolling-background/265386/3 "2008-07-09T09:19:07Z")

</div>

[QUOTE=bluemagica;2355266]huh…it is a looooot simpler to make a non scrolling platformer, than the one with scrolling…from your question the only thing i feel is that, you haven’t actually understood nathan’s tutorial, and if you go about making things without understanding them, then it is same as asking another person to make it for you!

I believe you should try to understand the tutorial first, and ask for help in understanding it, if you need![/QUOTE]

I understand it now but I don’t know how to tweak it to make the background non-scrollable and make the character move not the root. I’ve figured out most coding by myself for my custom game but it’s just that which is holding me back.

---

<div class="post-metadata">

**Author:** ![nathan99](https://avatars.discourse-cdn.com/v4/letter/n/96bed5/32.png) [@nathan99](https://forum.kirupa.com/u/nathan99)\
**Post date:** [July 9, 2008, 9:29am UTC](https://forum.kirupa.com/t/platform-tutorial-with-no-scrolling-background/265386/4 "2008-07-09T09:29:02Z")

</div>

if you understood it, you will know what to remove to make the screen not move; that is, the part that makes the screen move. Pretty fundamental if you understood it.

---

<div class="post-metadata">

**Author:** ![tapioca](https://avatars.discourse-cdn.com/v4/letter/t/a4c791/32.png) [@tapioca](https://forum.kirupa.com/u/tapioca)\
**Post date:** [July 9, 2008, 2:34pm UTC](https://forum.kirupa.com/t/platform-tutorial-with-no-scrolling-background/265386/5 "2008-07-09T14:34:39Z")

</div>

uhm, it might be harder than just removing a little code depending on how it’s set up… basically what it’s probably doing now is moving the hero to the right at the same time as moving \_root to the left so they cancel each other out and the hero stays in the middle of the screen. so if you want the screen to stay stationary, you would remove every place that it changes \_root’s \_x and \_y properties, and see if that breaks anything. hopefully it won’t.

---

<div class="post-metadata">

**Author:** ![Amymation](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@Amymation](https://forum.kirupa.com/u/Amymation)\
**Post date:** [July 10, 2008, 2:09pm UTC](https://forum.kirupa.com/t/platform-tutorial-with-no-scrolling-background/265386/6 "2008-07-10T14:09:10Z")

</div>

[QUOTE=tapioca;2355721]uhm, it might be harder than just removing a little code depending on how it’s set up… basically what it’s probably doing now is moving the hero to the right at the same time as moving \_root to the left so they cancel each other out and the hero stays in the middle of the screen. so if you want the screen to stay stationary, you would remove every place that it changes \_root’s \_x and \_y properties, and see if that breaks anything. hopefully it won’t.[/QUOTE]

Thanks for the help, I’ve figured most of it out 🙂
