M
Mikapo
Guest
Hey,
I would like to code the hp bar to stay at the top right but I don't know how to make it work.
Any help.
My code is:
draw_sprite(healtbar_empty,1,obj_player.x-380,obj_player.y - 170);
draw_sprite_ext(healtbat_full,1,obj_player.x-380,obj_player.y - 170,obj_player.hp/25,1,0,c_white,1);
draw_sprite(healtbar_border,1,obj_player.x - 380,obj_player.y - 170);
I am using gamemaker studio 2.
I would like to code the hp bar to stay at the top right but I don't know how to make it work.
Any help.
My code is:
draw_sprite(healtbar_empty,1,obj_player.x-380,obj_player.y - 170);
draw_sprite_ext(healtbat_full,1,obj_player.x-380,obj_player.y - 170,obj_player.hp/25,1,0,c_white,1);
draw_sprite(healtbar_border,1,obj_player.x - 380,obj_player.y - 170);
I am using gamemaker studio 2.