Drawing on to the View
If you have added a view/camera to your game that previously had scores, lives and health ect on the screen, you will notice that it does not move with the camera.
This is because those are drawn onto the level and not the view,

If you think of the level as a big peice of paper with your level drawn on
it.
Now think of the View and a kind of frame over the paper, you can only see
what's in the frame.
Now if your frame is to the far left of the level, and you've drawn your score on the right of the level, it won't show on the frame.
Now to solve that, we draw on the frame, which is, drawing on the view, so
think of it as writing on the glass of the frame.
Now the writing is on the frame, where ever you move the frame, the drawn stuff
moves with it.
Drawing onto the View in Game Maker
If you don't know how to draw things like the score or lives on to the level, please see the drawing tutorials.
You should have a game with something drawn onto the level, you also need
the object to draw it.
If you don't, quickly add an object, call it, o_display, add a Draw Event,
from score tab, drag in, Draw Lives as Image Action ![]()
Here are two screen shots of the Draw Lives as Image Action,

The image on the left is what you probally have, this will draw the lives as an image on the game at 10 on the x axis and 10 on the y, the top left of the screen.
The second image, draws the lives onto the screen, view_xview is the point on the x axis where the view starts, because we have said, view_xview + 10, this will draw the lives wherever the view is looking at, then 10 more pixels, so if the view was at x30, this would draw from x40, in the right place. For the Y axis it is similar, just adding to view_yview.

So basically, to draw on the view, you have to draw where the view's x and y position is THEN add how many pixels you want to draw in from that.
Download working example