S
steveyg90
Guest
Hi,
I'm busy tonight lol. I created 100 objects which move across the screen left to right in random positions, now these always appear at the top above everyhing, I've tried changing depth but to no avail.
The above code is ran once to create 100 o_Rain objects. In the o_Rain object in its create event I set the depth so they should be at the back, but still they are appearing in front of my player object and my tiles.
I have the o_Rain objects drawn in Draw GUI event so I guess this could be why, but if I don't do this they also move with the scrolling of my game.
Any help is appreciated here.
I'm busy tonight lol. I created 100 objects which move across the screen left to right in random positions, now these always appear at the top above everyhing, I've tried changing depth but to no avail.
Code:
for(var i=0;i<100;i++) {
xpos = random_range(0,900);
ypos = random_range(0,800);
instance_create_depth(xpos,ypos,0,o_Rain);
}
I have the o_Rain objects drawn in Draw GUI event so I guess this could be why, but if I don't do this they also move with the scrolling of my game.
Any help is appreciated here.