Hello,
I seem to have an issue with changing actor's image during my autorun event. Whenever actor image change occurs, there's a split frame glitch that makes character transparent, as if it couldn't load fast enough to replace the image instantly. I've tried working it out both through regualar image change option, and scripting/refreshing just the character sprite.
My desired effect is to change character sprite to emotes, and make the actor shake his head by movement route commands.
I've got another similiar autorun event running on the same map that works just fine (same emotes tileset).
Below I'm attaching 2 images, first being the one that works, the second being that one that has 1 frame delay.
Bump
It's really important, if anyone's got a single clue on how to sort this out I'd be grateful. All I need is to change actor's character sprite without having to witness 1 empty frame in-between.
I'm only guessing here, but in your second event (the one that has the delay) you're using a script command followed by a refresh.
Most likely that is what is causing the problem, because the script box is another interpreter level and not a direct sequence. So there is a delay between the change command and the refresh command.
If that guess is true, then you can't solve this with script commands inside the script interpreter, you'll need to use either the event command or have a plugin provide a function that combines both script commands into a single function (so that the interpreter doesn't cycle between the commands)
Why are you using the script command there instead of the event command?
Isn’t there a movement option (set move route) to change character image? How does it look when you use that?
then show us the sprites you're using as well, and try to explain the problem in a bit more detail.
If it happens only sometimes, then it's either a timing problem or really a problem of the sprite loading size/time.
If it is a timing problem, it is most likely caused by too many processes on the same map - if you copy that event to a new, empty map, does it still fail or does it suddenly work again?
and how many parallel processes have you in your common events?
I specifically did not talk about "parallel process" but the more general "processes", because parallel process events are not the only thing that works there. The main game loop contains other processes as well, for example each move route becomes one of those processes in the game loop with equal effect to parallel process events. And too many of them can also cause problems even if there is no parallel process event on the map.
That is why I asked you to test in an empty map, and asked about parallel process common events (which are not map-dependent).
And I wanted to see the spritefile, not a screenshot of the sprite in the resource manager, because that would have allowed a check on the properties, pixel structure and so on.
There aren't that many processess going on really, just some text and a little bit of moving, nothing extraordinary. I have also tested the same route command on an empty map and the issue still occurs. As for spritefile, I'll send you them through PM as I'm pretty sure I shouldn't be sharing something I've had to buy.
OK, there is one thing on your plugin manager that is wrong - the order of plugins is important, especially with yanfly's plugins. you have to place yanflys plugins into exactly the order in which they're listed on his website.
Where the others fit best is something you'll have to test for yourself.
Well, that's sorted, wish it would've fixed the issue though 😀. As for the actor image change, I will use custom animations from now on, hopefully no more issues arise in the future. Thanks for all the help and sticking until the very end!
So for anyone that is encountering the same issue as me, I think I have finally found a solution - "Galv's MV Image Cache" plugin. It lets you pre-load the required images before its shown on the screen for the first time. After lots of testing I found out that my issue was happenning only for the very first time (to load the spritesheet), afterwards it worked fine every time.