ID:2932617
 
Not a bug
BYOND Version:515
Operating System:Windows 10 Home 64-bit
Web Browser:Chrome 124.0.0.0
Applies to:Dream Daemon
Status: Not a bug

This is not a bug. It may be an incorrect use of syntax or a limitation in the software. For further discussion on the matter, please consult the BYOND forums.
Descriptive Problem Summary:
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
If you are using SIDE_MAP format, this is not a bug, as x and y offsets alter the sprite's position, which impacts layering.

You want to use pixel_w/z or atom.transform for overlay offsets instead.
In response to GuruBot
GuruBot wrote:
If you are using SIDE_MAP format, this is not a bug, as x and y offsets alter the sprite's position, which impacts layering.

You want to use pixel_w/z or atom.transform for overlay offsets instead.

ah, good to know. sorry for inconvenience.
Lummox JR resolved issue (Not a bug)

Login to reply.