GameMaker Drawing Tons in the Background?

Okay so something peculiar is occurring. I have eliminated script by script but its still happening. So it looks as if the sprite animation is drawing over and over and over and over in the background behind the background in addition to the main object itselfs sprite? Thats all i can guess.

Here is what is visually happening. The sprite thats "playing" on top is seemingly also stacking tons of themselves in the background.


Here is all of my code. Every bit of it...
 

Simon Gust

Member
Normally I would say you arent drawing a background and that causes the stacking usually. (Reason explained 7 billion times on this forum). But this does look weird. It only seems to stack in these grid lines. And in addition, only the semi-transparent aura seems to stack. Is this grid you see in the game done by you? How are you drawing these?
 
Normally I would say you arent drawing a background and that causes the stacking usually. (Reason explained 7 billion times on this forum). But this does look weird. It only seems to stack in these grid lines. And in addition, only the semi-transparent aura seems to stack. Is this grid you see in the game done by you? How are you drawing these?
the grid itself is just a single png image i have on the background layer of the room. So i can (eventually) line the cubes up. Here is a GIF of me triggering the next sprite to come in and vanish. So then you can see the background oddities.



Wanna hear something more strange? I removed the sprite grid thing. And now its gone. Doesnt do it anymore. But the second I put ANY sprite in the background layer it does it.
 

Simon Gust

Member
I suggest adding a background in the room editor. This background can just be black as long as it fills the view and isn't transparent.
Or alternativley enable clear display buffer in the room editor.
upload_2019-11-8_19-25-7.png
 

Simon Gust

Member
Ok, if it's not that, then it must be some draw-rule code or shader.
Do you have code in your draw event? Can you show us this?
Or are you using shaders?
 
Apparently clearing the display buffer is not enough. You'll want to also make sure that you're drawing a non-transparent background of some kind (can just be a solid color).
 
Apparently clearing the display buffer is not enough. You'll want to also make sure that you're drawing a non-transparent background of some kind (can just be a solid color).
Bingo! I think the Alien has it. Both images I was trying out had some level of transparency to them. Even WITH a color background selected. Once you remove the image that has transparency to it you are good to go. Long story short you cant have a rear facing image as the background with transparency in the slightest.
 
Top