GMS 2 help!

André Luiz

I want to make the character's life bar follow the camera, but I can't do that,
so i need your help to send me some toturial or write some code that helps me.

here's my camera code:
#region Movimentação da câmera

halfViewwidth = camera_get_view_width(view_camera[0]) / 2;
halfviewHeight = camera_get_view_height(view_camera[0]) / 2;

camera_set_view_pos(view_camera[0], x - halfViewwidth, y - halfviewHeight);

ps: my object's name is Life_bar_obj
Hello !

I think just use a "Draw_GUI" event. It is made to be drawn on top of other draw event and to follow the camera automatically.

Hope it helps :)
  • Like
Reactions: Rob