Discussion in 'Programming' started by NoFontNL, Aug 12, 2019.
Is there a way to change the draw order of backgrounds?
Thanks in advance.
Side note, in the GameMaker room editor everything looks fine, but in game it does not
@NoFontNL changing the depth of the layer/background
lowers numbers get drawn in the front
and highers get draw in the back
Hmm, then there might be another problem.
You see, I've done this and it shows correctly in the room editor.
But in game, the background loops instead of being drawn only at the bottom.
I have one background which is not vertically tiled and it's y position is at the bottom of the room (so that it fits on screen)
Then I have background which is vertically tiled. But background is on top of it, as it's supposed to, but it loops too
if the problem is that it loops /tiled , change the layer settings in the room editor so it doesn't tile
and in the sprite editor too
I'm using GMS1.4
So I changed the settings in the background, and the settings in the room and it still occurs.
Also, when doing backgound_index =-1 and also when doing background_visible=false, then the background is still there.
I found a workaround, it's not a fix to this problem however.
I made a seperate object which draws the background.