Quantcast
Channel: Questions in topic: "item"
Browsing all 274 articles
Browse latest View live
↧

Item database with override functions

Hi. What is the best way of creatin item database, which supports "Individual items"? For example, I was using scriptable object for quite time. You can create an item struct and change values of them....

View Article


A question about creating items using scriptable objects

So, I have the item code as follows: using UnityEngine; [CreateAssetMenu] public class Item : ScriptableObject{ public string name = "Dagger"; public Sprite sprite; public int maxQuantity = 9; public...

View Article


Grid Inventory : Move Item & Slot Highlighting

Hi ! I'm working on an inventory system with large items (Diablo/Men of War/Commandos/"insertnameofagamehere"-style) for an RPG, but I can't find a proper way to move an item from one group of slot to...

View Article

Why can't i collect item in unity 2d?

I've in my game project items which i can collect: apples, hearts and keys( by them i have possibility to open exit). I only have problem with these keys. In the beginning everything was working, but...

View Article

NullReferenceException: Object reference not set to an instance of an object...

I get this null reference with i click P (Adding item id 0 (Apple) to my inventory pointing to this line " if(itm.itemID == id)" As well as in the "Item" Script i get an error "You are trying to create...

View Article


GetItemByID error

Im making an inventory and was wondering why this error appeared ItemDataBase' does not contain a definition for `GetItemByID' and no extension method `GetItemByID' of type `ItemDataBase' could be...

View Article

Deleting item from inventory system...

As the title says, I'm trying to create a method to delete items from my inventory system but it's not functioning as anticipated. Right now it's meant to delete a stack of a consumable item when I...

View Article

referencing a gameObject with it's own script

Hello all, I'm having trouble with something very simple: I want to reference a game object with it's own script. public class ItemScript : MonoBehaviour { public Inventory inventory; public ItemType...

View Article


Inventory Management Issue

I have a GameObject you can walk on to pick it up. This GameObject has an **ItemContainer class extending from MonoBehviour**. **ItemContainer has an Item property, which does NOT extend from...

View Article


How to hold items?

Okay, hi and thank you in advance. First of all I swear I'm not a blubbering idiot. Currently for another game I'm making a whole other set of arms for each weapon. Like I'll make one set of arm the...

View Article

How to create complex item system in an elegant way

I am currently considering building a relatively complex inventory system that each weapon has its own ability/abilities such as health stealing. Besides, different weapons might also share same...

View Article

Item Icon goes to origin, not set transform. (JAVASCRIPT)

Hi all. I am making an inventory system for my fps game, and I have come across an issue. I have a bunch of panels that are activated and deactivated in order to show/hide my inventory. In the start...

View Article

Position next to other item

Hi Generally I have button, when i click on it item will show. When i click again new item show next to previous item, If i have 3 items and i will delete second, third automatically move left to other...

View Article


Picking up various types of items?

Hello, I am trying to work up a simple RPG system, where the player will be able to pick up items and add them to the inventory. The posts I have looked at on this forum haven't quite answered my...

View Article

How to save an item as bought in player prefs?

I have a Character Selection scene, in which you can see the characters once at a time and see the next or the previous one by ui buttons. Recently I've added money, and works perfectly, but I can't...

View Article


Create group people, Select one or more at random.

I'm trying to create a group of items with certain attributes and then select one item and show their attributes. The "group" can be a list, array, class, anything (whatever is the absolute easiest to...

View Article

Items are remaining after ending play with OnDisable,When OnDisable is...

Hi, creating a 2D Platformer with enemies you can destroy and they'll drop powerups. I have a 50% drop for an health up, and a 50% for a mana up. That's working fine. However, if I haven't killed the...

View Article


I have the "Intelligence" ability on my character, which has a base variable (working perfectly, currently set to 21 for this instance) and a weapon (which is being added to their inventory and forced...

View Article

Item class system with inheritance, how to put them into the world?

This is my first time using inheritance to write an item system. For example, I have these two classes: [System.Serializable] public class Item { public string name; public int weight; }...

View Article

Check distance combination item in array / list

Hello, I really thanks to someone who can answer my question. Before, I'm sorry for my bad english cause my native languange is not english. I have a school project. Until now, I still try to know how...

View Article
Browsing all 274 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>