Making the view follow the actor

I'm trying to get my character to always be in the centre of the screen but I didn't understand the tutorials...
Can anyone explain this clearly????
Can anyone explain this clearly????
Game Editor discussion board
http://game-editor.com/forum/
// BAD CODE!!!
x = myactor.x;
y = myactor.y;
// use this in draw event of view
x = myactor.x-width/2;
y = myactor.y-height/2;