My save system saves the overlays so when people relog they stay with 2 bars, the one they had previously saved and a new one (full). I believe it creates a new overlay everytime people Log in.
I have this on the mob/Login()
health_bar = new(src, 'DemoHealthBar.dmi', 14, "health", "maxhealth", pixel_y = -8)
mana_bar = new/bar_overlay/mana_bar(src)
src.updatebars()
..()
mob
proc
updatebars()
mana_bar.Update()
health_bar.Update()
spawn(10)
src.updatebars()
And I even tried to do mana_bar.Hide() / health_bar.Hide() on the mob/Logout() and mana_bar.Show() / health_bar.Show() on the Load.
Nothing seems to work, Hope you can Help me =) Thanks!
Thanks for making a separate post. Can you show me where you're saving your mob? That's where you need to add the Hide()/Show().
Also, keep in mind that you'll have to wipe your savefile (or at least strip the overlays from it) to remove the old saved overlay before the fix will appear to work.