Container Example - Give every Sprite a hash table!

This forum is currently in read-only mode.
From the Asset Store
Unlock platyers earning coins, and save it with Localstorage
  • Some of you may not be aware, but containers can be used on non-frame objects as well. This is great if you want to pair up a data object with another object. In the example I have attached, each of the orange balls has a hash table, and you can easily set and get the values of them. If you use a condition which picks a particular sprite, the correct hash table will automatically be picked as well, giving each individual Sprite its own hash table as though it was a part of it!

    The advantage to using the hash table over normal private variables is that the hash table is dynamic. You can form the key using an expression, which allows for all sorts of dynamic data structuring

    Hopefully this will help ya out Mipey!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Wow, didn't know that Sounds VERY useful!

  • Awesome, that is what I needed! Thank you very much, David

    Now to implement this into a fully functional and expandable solution... Oh joy!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)