Array-based inventory

5

Index

Attached Files

The following files have been attached to this tutorial:

.png
.capx

array-based-inventory.capx

Download now 83.25 KB

Stats

13,778 visits, 43,303 views

Tools

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 7 Jul, 2013. Last updated 19 Feb, 2019

the finishing touches

Now create "Function" object. This will help us to control events easier.

Add one function "inv_open" for the algorithm, about which I wrote earlier.

When this function is called, we need to reset old data about our actions.

Now go back to the On object clicked "slot" event and do the same as in the screenshot:

And dont forget to call this function in the startup, to create first objects with which you will be working:

And that's all! You just created basic inventory "engine".

Try to play with it: make inventory bigger, add new items, add some visual effects (drag and drop or something) and so on.

If you liked my tutorial I will not deny myself in making additions to it :)

Also, you can check this inventory efficiency here.

Thank you for attention.

.PNG
.CAPX

array-based-inventory.capx

Download now 83.25 KB
  • 0 Comments

Want to leave a comment? Login or Register an account!