This is a bit of an odd thing. I'm using Hime's ChangeBattleback to switch battlebacks in the middle of battle. It works perfectly 99.99% of the time… but just recently, it randomly failed a few times, and I can't seem to figure out why. Then, after a string of failures, it just started working again.
I went into the debugger during several failures and confirmed that the _back1Sprite and _back2Sprite referenced the new battleback; yet, the screen still showed the old battleback.
If it truly happens only occasionally, it's not that big of an issue, but if possible, I'd still like to understand what happened, as it could potentially be more common on a different machine. My thought was maybe some sort of race condition or something, but I'm not really sure. Does anyone have any ideas what might have caused this?
I went into the debugger during several failures and confirmed that the _back1Sprite and _back2Sprite referenced the new battleback; yet, the screen still showed the old battleback.
If it truly happens only occasionally, it's not that big of an issue, but if possible, I'd still like to understand what happened, as it could potentially be more common on a different machine. My thought was maybe some sort of race condition or something, but I'm not really sure. Does anyone have any ideas what might have caused this?