Drawing on top

S

Shazard Bansraj

Guest
I currently have an enemy which creates a gun when it spawns (create event). I would like the gun to sit on top but I can't seem to get this to happen. Even though the depth of the gun is lower than the enemy, it is still hidden behind. How do I fix this?

The gun is attached to the enemy and follows its x and y coordinates. The room uses physics.
 
Top