# Character reaches the end of the map (walls and camera movement)

**URL:** <https://forum.kirupa.com/t/character-reaches-the-end-of-the-map-walls-and-camera-movement/297858>\
**Category:** programming\
**Created:** [October 9, 2009, 10:19am UTC](https://forum.kirupa.com/t/character-reaches-the-end-of-the-map-walls-and-camera-movement/297858 "2009-10-09T10:19:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hangyoo](https://avatars.discourse-cdn.com/v4/letter/h/278dde/32.png) [@Hangyoo](https://forum.kirupa.com/u/Hangyoo)\
**Post date:** [October 9, 2009, 10:19am UTC](https://forum.kirupa.com/t/character-reaches-the-end-of-the-map-walls-and-camera-movement/297858/1 "2009-10-09T10:19:06Z")

</div>

Hi all!  
First of all i hope everyone is ok today.🙂  
My problem for today is that i am making another 2d adventure game but now my problem is that the main character is at the center of the screen and the surrounding arrea is moving around him,but when he reaches the map reaches the end of the screen it must stop and the caracter should be able to move forvard from the center to the edge of the screen,and if he came back to the center everything must be the same.  
I dont know if you undersant that…  
I link my fla,and maybe someone could help me.:rambo:

LINK:

> **[Free Web Hosting - Your Website need to be migrated](https://www.000webhost.com/migrate?static=true)**
>
> Absolutely Free Web Hosting with PHP, MySQL, cPanel and no Ads!

Auch!  
Solved the problem:D  
[[COLOR=#0066cc]http://www.mkworkshop.comuf.com/cube\_game2.rar[/COLOR]](http://www.mkworkshop.comuf.com/cube_game2.rar)

Here it is!  
Maybe if someone has a smarter and easyer solvation please write it down for me!

Bye bye
