Animating dir with some variables fails to actually cause dir state changes. Tested with parallel and nonparallel animations.
Numbered Steps to Reproduce Problem:
http://files.byondhome.com/Azrun/animate_dir.zip
Code Snippet (if applicable) to Reproduce Problem:
obj/arrow/a
maptext = "A"
New()
animate(src, time=50, loop = -1, dir=EAST)
animate(time=50, dir=WEST)
obj/arrow/b
maptext = "B"
New()
animate(src, time=50, loop = -1, dir=EAST)
animate(time=50, dir=WEST)
animate(src, time=50, loop = -1, pixel_x=6, flags=ANIMATION_PARALLEL)
animate(time=50, pixel_x=-6)
obj/arrow/c
maptext = "C"
New()
animate(src, time=50, loop = -1, dir=EAST, flags=ANIMATION_PARALLEL)
animate(time=50, dir=WEST)
animate(src, time=50, loop = -1, pixel_x=6, flags=ANIMATION_PARALLEL)
animate(time=50, pixel_x=-6)
obj/arrow/d
maptext = "D"
New()
animate(src, time=50, loop = -1, dir=EAST, pixel_x=6, flags=ANIMATION_PARALLEL)
animate(time=50, pixel_x=-6, dir=WEST)
obj/arrow/e
maptext = "E"
New()
animate(src, time=50, loop = -1, dir=EAST, pixel_x=6)
animate(time=50, pixel_x=-6, dir=WEST)
Expected Results:
'A', 'B', 'C', 'D', 'E' all change dir as animation loops.
Actual Results:
'A' changes dir as animation loops.
Does the problem occur:
Every time? Or how often?
In other games?
In other user accounts?
On other computers?
When does the problem NOT occur?
When only DIR is animated.
A, D, E correctly animated when paired with maptext, maptext width, alpha and possibly other variables.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Workarounds:
Invert X scale for icon states that are mirrored.