André Luiz
Member
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:
ps: my object's name is Life_bar_obj
so i need your help to send me some toturial or write some code that helps me.
here's my camera code:
GML:
{
#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);
#endregion
}