# Mario scrolling code help

**URL:** <https://forum.kirupa.com/t/mario-scrolling-code-help/217557>\
**Category:** Uncategorized\
**Created:** [February 27, 2007, 11:00pm UTC](https://forum.kirupa.com/t/mario-scrolling-code-help/217557 "2007-02-27T23:00:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crzymdget101](https://avatars.discourse-cdn.com/v4/letter/c/c6cbf5/32.png) [@Crzymdget101](https://forum.kirupa.com/u/Crzymdget101)\
**Post date:** [February 27, 2007, 11:00pm UTC](https://forum.kirupa.com/t/mario-scrolling-code-help/217557/1 "2007-02-27T23:00:21Z")

</div>

I am making a mario like game, and everything is pretty much working. jumping, platforms, ect… are all great, but i made the mistake of making the background and platforms move instead of the character and now when the character hits a wall or other obstical the background will push him off screen and you can not get him back. I need a new method of scrolling him, like fix him so he MUST be in the center all the time. i have a basic understanding of actionscript but for some reason i cant grasp a way to do this. any help would be great.

thanks
