Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
- First make a grid GUI/box for your inventory so that you have a visual idea where your items should go.
- Make a generic universal object for each possible size of object (1x1, 1x2, 2x2, etc).
- add controls so you can click and drag these objects
- while the inventory is open, here's the trick: do a collision detection to see if you can place an object using the snap_grid feature. If your object snap_grid'd doesn't collide with any other object then allow placement of it when releasing left click (or whatever). If your object snap_grid'd does collide, give it a grey or red tint.
- When an object is placed in the inventory, snap_grid it so it actually fits in the inventory
- when you close the inventory, move the ENTIRE inventory bag/whatever something like 30'000 units off screen. This saves time in having to destroy/create the inventory all the time. When you open the inventory just move it back 30'000 or whatever units so that it's in front of you again.
- whenever you pick up a new item and the inventory is closed, do a singular pass of all squares in the inventory to see if there's empty space and attempt to put the item there once... if it doesn't fit, do a 'i can't carry this right now' voice line or whatever