usr.overlays=null
usr.icon_state=null
if(D=="Sunmon")
usr.Digimon="[D]"
usr.icon='Digimons/Sunmon.dmi'
usr.rank="In-Training"
if(D=="Coronamon")
usr.Digimon="[D]"
usr.icon='Digimons/Coronamon.dmi'
usr.rank="Rookie"
if(D=="Firamon")
usr.Digimon="[D]"
usr.icon='Digimons/Firamon.dmi'
usr.rank="Champion"
if(D=="Flaremon")
usr.Digimon="[D]"
usr.icon='Digimons/Flaremon.dmi'
usr.rank="Ultimate"
usr.icon_state="1"
var/obj/A=new /obj/Flaremon
usr.overlays+=A
Problem description:
So, how do I explain this. Players can be digimon, which start as 1 tiled icons. Later in the game, you can evolve to a two tiled digimon. But there's a gem that can return you to a single tiled digimon. The problem is that the single tiled digimon becomes two tiles, of the same digimon. But that only happens when you use the item to revert, FROM a two tiled digimon. I've put usr.icon_state=null and same for overlays. But that isn't working x.x. If that made any sense lol, any ideas? This isn't the full code, if you need that or anything else let me know. Thank you!! And I've already posted this and thought it was fixed, but when I hosted publicly, the problem came up again.
The least code intensive way to fix this would be to just make your Digimon that require overlays use larger icon files.
BYOND doesn't require your icon files to be set as 32x32. You'll save time with importing sprites in the long run this way and can completely forget about overlays.