JavaScript is required to use Bungie.net

OffTopic

Surf a Flood of random discussion.
2/14/2013 3:27:49 AM
2

Having a problem with an inventory screen I can't give code atm but i vividly remember how it works

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.

Posting in language:

 

Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

View Entire Topic
You are not allowed to view this content.
;
preload icon
preload icon
preload icon