I have this:
obj/HP_Bar
icon = 'HP Bar.dmi'
icon_state = "100"
layer = 100
screen_loc = "1,1"
New(client/C) {..(); C.screen += src}
It works well but there are some objects that appear over the bar :( I dont know why, their layers are lower than the bars but i cant find a way to fix it, thank you for the help :DD