David B., on 26 June 2017 - 09:21 AM, said:
The backwards animation defined with the -1 increment should begin on the tile where the first one ends, not on the same tile as the first one. Also, before going to state close you should be checking whether the action is action OPENING; you don't want it to loop the action CLOSING animation.
Good rule of thumb: if you are having trouble getting an animation to display, test the animation by itself before adding the animation to other code. More generally: when code isn't working and you can't figure out why, isolate the problem by testing individual components of the code. If you don't understand the individual components well enough to test them, then expect problems when you put them together.