I'm trying to make an elaborate overworld animation using spritesheets. My plan was to use the command
to cycle between the three walking and stepping frames, after which it would move to the next row of three sprites on the sheet (by rotating the event). However, I'm having a lot of trouble. For some reason the aforementioned command to set the event pattern is SUPER glitchy. It doesn't display pattern 2 if I set it to ping-pong between 0 and 2, and if I give it a command to rotate 90 degrees after going through all three frames, it does two full rotations before momentarily spazzing out and resuming its spinning.
Has anyone else had this problem? How can I easily set a specific stepping frame for an event, without it going completely crazy?
EDIT: I was able to get more success using
instead, but now I have a different issue. At the end of the movement command, I have it set keep frame 3 (top right corner of a spritesheet) on screen for 15 frames. Despite that, for some unfathomable reason, RMMV only displays it for but a SINGLE frame, and displays the remaining time as the default sprite of the event page!
Okay, I then try setting the default page sprite to sprite 3. But now SPRITE 2 doesn't show up for but a frame! It's like the system utterly falls apart if you try to set the sheet to the right side.
EDIT 2: I don't know what I managed to do, but it mostly works now. However, every time that the sprite changes rows, it flickers the leftmost sprite on the character sheet for one frame, because RMMV can't change both the direction and pattern in one frame.. It looks almost good, but at high framerates, it goes back to being terrible. I could probably make multiple spritesheets and only use the middle column, but I would really like to use this method if feasible.
Code:
$gameMap.event(this.eventId())._originalPattern = X;
Has anyone else had this problem? How can I easily set a specific stepping frame for an event, without it going completely crazy?
EDIT: I was able to get more success using
Code:
$gameMap.event(this.eventId()).setPattern(X);
Okay, I then try setting the default page sprite to sprite 3. But now SPRITE 2 doesn't show up for but a frame! It's like the system utterly falls apart if you try to set the sheet to the right side.
EDIT 2: I don't know what I managed to do, but it mostly works now. However, every time that the sprite changes rows, it flickers the leftmost sprite on the character sheet for one frame, because RMMV can't change both the direction and pattern in one frame.. It looks almost good, but at high framerates, it goes back to being terrible. I could probably make multiple spritesheets and only use the middle column, but I would really like to use this method if feasible.