Ok, so, i'll just jump right in here. I'm making a top down RPG, and am trying to code the extreme basics right now. I have an inventory system coded to where it pauses the game and draws the menu. The various items in my inventory screen are objects, which are created on the screen based on an array that keeps track of the items. The pause system is done by deactivating objects, and activating a few specific ones i need to keep the game going. I keep this script in a controller object, which is kept active, i activate all objects in the inventory using a parent, and i activate the protagonist. The protagonist cannot move while the screen is paused because of a variable that is toggled whenever i press the inventory button. My problem is that my protagonist is drawn above the menu ONLY if objects are contained within the inventory. If the inventory is empty, all draws as it should, but if an object is contained within the inventory the protagonist is drawn above the inventory. I am having this problem with both states of the protagonist, the one holding a weapon and the one not holding the weapon, however i haven't tested it with objects that aren't children of the protagonist. If you need a better description i can give more info, otherwise i would really appreciate help on this as everybody I know is stumped.
-
Could you perhaps write a script to make the Depth of your Protagonist Object obscenely low while the Inventory Menu is open?