how to make the view follow the character

okay i got a character on screen is moving on x-axis but I want to be able to have the view and my top tool bar to follow the character i got a huge tile in length.
Game Editor discussion board
http://game-editor.com/forum/
view.x=player.x-(???)
view.x=player.x-240
view.x= player.x -(.5*view.width);