My game has developed a strange bug. When the player goes indoors, and then out again, the character sprite turns left. Just for a moment. And then control is returned as normal. The really weird thing is - it only happens sometimes?? So I'll playtest it by starting a new game, and there's a say, 50-50, or 1-in-3 chance that the bug will exhibit. When it does, it happens all the time. When it doesn't, it never happens. How strange is that? I don't even know how to begin fixing a bug that's not always there...
I only have one script installed currently - Yanfly's event chase - and it happened before that. I have a custom-evented time tracking and light changing system, so I use common events to track when the player goes indoors and out, so the light can change according to what time of day it is. My assumption is that it's something to do with that, but I've trawled through it and I can see nothing that would be causing it.
Any ideas? I'm stumped!