When we change overlay's pixel_x var to negative values, or pixel_y var to positive values the overlay will appear under the main icon. Positive pixel_x values and negative pixel_y values works just fine.
Numbered Steps to Reproduce Problem:
1. Create image/mutable_appearance
2. Change pixel_x to negative value or pixel_y to positive value
3. Apply overlay
Code Snippet (if applicable) to Reproduce Problem:
/obj/test_obj/proc/negative_x()
overlays = null
overlays += image(icon = 'icons/obj/test_icon.dmi', icon_state = "test_icon_state", pixel_x = rand(-16, -1))
/obj/test_obj/proc/positive_y()
overlays = null
overlays += image(icon = 'icons/obj/test_icon.dmi', icon_state = "test_icon_state", pixel_y = rand(1, 16))
Expected Results:
Overlay should appear above the main icon.
Actual Results:
Overlay appears below the main icon.
Does the problem occur:
Every time? Or how often?
Every time
In other games?
Untested
In other user accounts?
N/A
On other computers?
Untested
When does the problem NOT occur?
Always occur.
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.)
Untested
You want to use pixel_w/z or atom.transform for overlay offsets instead.