Descriptive Problem Summary:
I have two separate animations that get drawn in separate instances that can frequently be ran parallel together. One flashes a color over the player's icon with atom.color a few times, and the other animation makes the player "hop" a little bit when dashing by animating their pixel_z up 8 pixels and then back to 0.
The problem is that dashing while the flashing color animation is looping will cause the player's icon to get shifted up and get stuck like that without jumping back down. Dashing a few more times will usually bring the icon back into place, but more often it will just cause the player icon to glitch around sporatically and lock the player icon in certain directions when everything else behaves as though the player is facing the proper direction. When the ANIMATE_PARALLEL flag is removed the animations run perfectly(although the dashing cancels the color flash, which is undesired).
Numbered Steps to Reproduce Problem:
1. have a looped animation that flashes your mob's color between blue and null every few ticks.
2. while the above is applied to the mob's icon, have another animation that adjusts the pixel_z(or pixel_y) of the mob up 8px and then back down to 0 but only once. (see code below)
3. do step #2 while moving around.
4. after a couple times, the mob icon will glitch out and get stuck floating 8px north of where it should be with the direction being locked in the wrong way.
Both animations to run simultaneously without being wonky.
Both animations run simultaneously but the animation for shifting the mob's pixel_x upwards won't bring the mob back down and leaves the mob facing north for some reason.
Does the problem occur:
Every time? Or how often? everytime.
In other games? N/A
In other user accounts? Dev partner with same build says it doesn't happen for him.
On other computers? Evidently not.
When does the problem NOT occur?
When the ANIMATE_PARALLEL flag isn't set in any animate() calls.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? Builds prior to beta 511.1367
Just deal with animations that interrupt eachother.
Jan 20 2017, 12:47 pm