Hello, I am currently having some issues with syncing up animations with my sprites on a frame by frame basis. For example, I have a 7 frame sprite sheet with the character performing a slashing motion barehanded, and I am using the built in animation editor to overlay a 7 frame animation of a weapon in the character's hand that should be set to move in tandem with the slashing motion. The problem is that there appears to be a (1/60th of a second) delay depending on whether the animation or sprite sheet is called first, leading to a very slight desynch between the animation and the sprite's movement. While this can almost be overlooked, in a few situations it does look awkward and I am hoping there is a method to synch the animations up on a frame by frame basis.
Example screenshot of when the sprite movement finishes before the animation vs what it should look like:
Currently I have both my sprite sheets and animations set to play at 20 fps (3 delay for each with plugins), however the issue persists even with the default fps for either. I have also tried adding a "wait: 1" and "wait: 2", in between the animation call and the sprite pose, in both orders with and without a 1 frame blank animation frame ahead of the actual weapon animation, and in all cases it shifts the sequence to having either the sprite pose finished first or the animation finished first. Under no circumstances has it synced up completely frame by frame, and in all cases I have been able to screenshot a desynch between the sprite pose and the animation. It does look fairly accurate to the untrained human eye for the most part, but the single frame that is at times off is noticeable when paying attention, and it even seems as if there is an at random difference between when and how fast the animation plays and finishes, perhaps due to the animation needing to be loaded and/or stored in a cache.
So my question and hope is, is there a method to accurately sync my animation to play on the same frames as my sprite pose, every single time? Furthermore, is there a delay between script actions called in js? I suspect there is a 1/60ths of a second or so wait between every line, but then again it seems that the delay is somewhat random at times as I cannot create true synchronization by using wait commands either.
To summarize, both animation and sprite pose seem to be following the same rules and syncing frame by frame, however they are not truly accurately synchronized as seen by a slight discrepancy when screenshotted, seeming to be offset from one another by 1/60th of a second or so, leading to frame 7 of the animation or sprite pose to be played for a brief moment while frame 6 is still showing on the other.
Example screenshot of when the sprite movement finishes before the animation vs what it should look like:
Currently I have both my sprite sheets and animations set to play at 20 fps (3 delay for each with plugins), however the issue persists even with the default fps for either. I have also tried adding a "wait: 1" and "wait: 2", in between the animation call and the sprite pose, in both orders with and without a 1 frame blank animation frame ahead of the actual weapon animation, and in all cases it shifts the sequence to having either the sprite pose finished first or the animation finished first. Under no circumstances has it synced up completely frame by frame, and in all cases I have been able to screenshot a desynch between the sprite pose and the animation. It does look fairly accurate to the untrained human eye for the most part, but the single frame that is at times off is noticeable when paying attention, and it even seems as if there is an at random difference between when and how fast the animation plays and finishes, perhaps due to the animation needing to be loaded and/or stored in a cache.
So my question and hope is, is there a method to accurately sync my animation to play on the same frames as my sprite pose, every single time? Furthermore, is there a delay between script actions called in js? I suspect there is a 1/60ths of a second or so wait between every line, but then again it seems that the delay is somewhat random at times as I cannot create true synchronization by using wait commands either.
To summarize, both animation and sprite pose seem to be following the same rules and syncing frame by frame, however they are not truly accurately synchronized as seen by a slight discrepancy when screenshotted, seeming to be offset from one another by 1/60th of a second or so, leading to frame 7 of the animation or sprite pose to be played for a brief moment while frame 6 is still showing on the other.