Windows persist objects

M

Miner25

Guest
hey all
i have got a problem with gamemaker studio 1.4.....i have set some persist objects .in first room all are fine but at the next room all the persist objects setted to the previous room are behind the objects of the room .
image1.png image2.png
 

Perseus

Not Medusa
Forum Staff
Moderator
Looks like a trivial depth issue to me. Make sure that the depth of those instance is smaller than that of rest of the instances present in the room. [1]

There are more efficient ways to do that as well. Instead of using a new instance per health value, use a single control instance to draw the heart sprite multiple times using the Draw GUI event. Since the GUI layer is drawn above everything else automatically, you won't have to worry about depth at all.
 
Top