When you add an image to an object's overlays, and that image has no icon, the image added takes on the icon of the base object.
Numbered Steps to Reproduce Problem:
- Create an image using either the image proc or new with no icon
- Change the image's pixel_x or pixel_y
- Add the image to an object's overlays
Code Snippet (if applicable) to Reproduce Problem:
Here is a demo of the bug.
//This is the entire code in the project
The image doesn't show up at all.
The image has the icon of the base object.
Does the problem occur:
Every time? Or how often? Always.
In other games? Yes.
In other user accounts? N/A
On other computers? Have not tested.
When does the problem NOT occur?
It always occurs. You have to change the pixel_x or pixel_y, otherwise you won't be able to tell, though.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked?
I'm not sure. I only recently encountered the bug.
Set the image's icon/icon_state to an icon or icon_state that is blank.
It is sometimes useful to have an overlay with a blank icon. For example, if you want to display screen text that is attached to an object, you could add every letter to the overlays of the image, and then add the image to the overlays of the object. The image itself shouldn't have an icon, in that case, since the overlays of it are what it displays.