Descriptive Problem Summary:
I am not even sure if this is truly a bug? But it certainly seems like one. Objects that render_source the render_target of a master plane are not drawn in the correct spot- or at least the image is anchored incorrectly. It seems to always attempt to center images.
Edit: Additionally it actually seems to always try and center anything that is being render_sourced. This behavior is frustrating since no other visual in BYOND operates this way, graphics are typically anchored at the bottom left and not in the center.
Numbered Steps to Reproduce Problem:
1. create a master_plane and add it to the client's screen
2. make that master plane send to a render_target with *
3. create an object that render_sources the render target
4. add the object to the screen
Expected Results:
The image will render in the correct spot.
Actual Results:
It is instead drawn in the wrong spot. Occurs in 513 and up, not sure about older versions.
Workarounds:
Manually set the pixel_z of the object being added to the screen. That formula is screen_size x icon_size x 2.
Demo sent in the patreon discord.
ID:2653867
Feb 8 2021, 8:24 pm (Edited on Feb 8 2021, 9:04 pm)
|
|||||||||||||
Resolved
| |||||||||||||
This is actually inaccurate in the screenshot shown.
The problem shown doesn't center on the screen, but rather it's off by TILE_HEIGHT-VIEW_HEIGHT on the Y axis only.
Other sprites may be off like frontier is saying, but in the example screenshot it's only off on the Y axis.
Any X-offsets on the screen in frontier's example are likely due to a second bug that hasn't been pinned down.