Character sprites other than the first are invisible for no reason (?)

Hello! I've been trying to set up this small system where the player traverses a looped map. at the top of the map, there's a line of events that add up a global counter which changes the image of an NPC event placed on the map as well when the counter hits certain values.

my problem with this however is that the image sprites I used don't seem to change at all, or at-least the latter two.

1748265564712.png


this image is how my sprites are placed, with the default sprites being behind them as reference (hidden when exported.)


now, implementing the actual functions to change the image wasn't too hard, just some directional events that change the image (and forces the event to face downwards, which makes it face towards the player as intended, just in case.)

this "worked," the first sprite would appear, but the other two wouldn't.

didn't want to resort to the forums quite yet, i just assumed that it was a bug since there's no reason for this to not work.

Instead, I removed everything I did and tried to replicate the process using a script I made:
JavaScript:
const loopChange = [[3 , 0],[6 , 1],[9 , 2]];

for (let animal in loopChange){
numTbl = loopChange[animal];
var trueNum = numTbl[0];
if (trueNum == ($gameVariables.value(1))){
let spriteId = numTbl[1]; $gameMap.event(16).setImage("CharSprites1",spriteId); break;
} else if (loopChange.length - 1 != animal) { $gameMap.event(16).setImage("",0);
} else {break; }}

(This code isn't the problem I believe, just listing it here as reference for how the system is supposed to work.)

trying this code, everything should've worked as intended but the code is experiencing the same problem I had when using the event editor, in which the first sprite would show up but when i switch to the other two they don't appear at all.

why is this the case? It has to be because of the sprite sheet itself because I'm not seeing anything being done wrong on the technical side. I've even tried two separate approaches to come out with the same outcome. even then, I can't see anything wrong with the sprite sheet since everything is aligned. (I don't believe that it's because the character isn't facing downwards, because sprites would still be invisible if i told the event to face downwards before changing the image.)
I would suggest filling out the other cells of the sprite sheet.
I would suggest filling out the other cells of the sprite sheet.
Righty, I've just gone ahead and done that, looks like the lasts two sprites shift from the idle pose to one of the two walking poses for the animation:

1748299958265.png
1748299974510.png

would there be any way to just have the game forcefully use that one sprite?

or alternatively, would there be a way to create a sprite sheet that'd only fit three separate sprites total and still be recognized by the event? I could just copy-paste the same sprite across the entire sheet but that doesn't sound like a proper solution (?) I'd be fine with doing it but i feel like theres a "proper" way of going about doing that.

regardless, didn't think of using this to troubleshoot the problem so thanks!
Are they "walking?" Have you tried to put in dummy images to see which cels are actually showing up?
Well filling the cells with colors is a good debugging method, but I really meant copy-paste your existing sprites to fill the cell up.
Are they "walking?" Have you tried to put in dummy images to see which cels are actually showing up?
No, there's nothing that has the event move anywhere, if they move then they're turning towards the player upon interaction which I also plan on removing regardless, they should always be facing down meaning that single sprite should be the only one that shows up

I did use various colors as shown in the above reply, the function was working all along but the engine would shift the used idle cell to the left by default, not sure if there's a way to have the engine use the middle sprites specifically though.

Well filling the cells with colors is a good debugging method, but I really meant copy-paste your existing sprites to fill the cell up.
I see, i'll probably end up doing this, does the engine have no alternative method of expressing single-sprite images on events? the reason i'm asking is to see what the limitations are when using the engine if i wish to do anything similar in the future, and to clear up any gaps of misunderstanding with the engines functions

both of your help is appreciated!
You can get the engine to display single images, but there are a lot of coded sprite behaviors. There are quirks of the source code, as well as bugs introduced by unexpected script behavior. I have definitely used non-moving images from sheets before, but I wasn't doing exactly what you are doing. In my case, I created events to look like tiles to create "illusory walls."

I suggest inserting color coded images on the sheets for debugging. If a sprite is "turning," that is, changes facing, then there is some issue with the sprite behavior or your switches/variables. If the sprite "walks" then it is probably some behavior in the code base.

Note you can also use dollar sign file names to make images that don't turn and/or walk. I usually don't bother because the standards aren't well documented, and I have to relearn how to format the sheet. But it can be done, the big monster sprites are done this way.
You can get the engine to display single images, but there are a lot of coded sprite behaviors. There are quirks of the source code, as well as bugs introduced by unexpected script behavior. I have definitely used non-moving images from sheets before, but I wasn't doing exactly what you are doing. In my case, I created events to look like tiles to create "illusory walls."

I suggest inserted color coded images on the sheets for debugging. If a sprite is "turning," that is, changes facing, then there is some issue with the sprite behavior or your switches/variables. If the sprite "walks" then it is probably some behavior in the code base.

Note you can also use dollar sign file names to make images that don't turn and/or walk. I usually don't bother because the standards aren't well documented, and I have to relearn how to format the sheet. But it can be done, the big monster sprites are done this way.
I see, thank you for the explanation! I'll try look into the "$x" sprite sheets and see how they can be used, and if they don't work as desired i can easily just revert back to the default set and go through with the previous suggestion of copy-pasting the sprites across.

Thank you both!
This thread is closed due to being reported as solved. If you need it reopened, report it to let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/character-sprites-other-than-the-first-are-invisible-for-no-reason.177931/