JavaScript is required to use Bungie.net

服務提示
所有天命版本將於今日暫時離線,以進行預計維修。請持續關注@BungieHelp,以獲取更多消息。

雜七雜八

瀏覽大量隨機討論串。
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.

文章張貼語言:

 

以禮待人。發佈文章前請花點時間查看我們的行為準則 取消 編輯 創立火力戰隊 文章

你無權檢閱此內容
;
preload icon
preload icon
preload icon