ID:2142978
 
Resolved
Pixel offsets set right after animation weren't respected.
BYOND Version:511.1355
Operating System:Windows 10 Pro 64-bit
Web Browser:Chrome 52.0.2743.116
Applies to:Dream Seeker
Status: Resolved (511.1356)

This issue has been resolved.
Descriptive Problem Summary:
When setting a pixel offset right after animate() call, it will be ignored.

You can however wait 2 ticks and it'll take effect or if loop is not -1 it will be set as soon as the animation ends.

Numbered Steps to Reproduce Problem:
1. animate() call with loop -1
2. set pixel offset

Code Snippet (if applicable) to Reproduce Problem:
    animate(o, color = "#f00", time = 10, loop = -1)
animate(color = "#0f0", time = 10)

o.pixel_y = 32


Demo: https://dl.dropboxusercontent.com/u/51176364/scratch.zip

Expected Results:
Pixel offsets to work

Actual Results:
They're ignored

Does the problem occur:
Every time? Or how often? Always
In other games? Yes
In other user accounts? Yes
On other computers? Yes

Workarounds:
sleep 2 ticks
Thanks. I'll take a look at this report on Tuesday.
I've also found cases of this with other appearance-related values. I don't think it is just pixel offsets that this applies to.
Urk. This looks like it's gonna take some puzzling out to fix. Working on it.
Lummox JR resolved issue with message:
Pixel offsets set right after animation weren't respected.