>
> > darn, i dont have the newest version of Construct... :/
> >
>
> The newest stable release is HERE: scirra.com/construct2/releases/r244
>
> There should be no reason for you not to upgrade to this version.
>
It's usually best to stay on one version of a program till you finish a project, even if the update is a stable release.
> can you please describe howd you solve this problem?
> That would be neat! <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy" />
>
Yup, here you go:
So you'll need 3 objects (1 "Item" sprite, 1 "Slot" sprite and 1 "Inventory_Array" array)
The "Item" sprite will have "Item_ID", "LastX" and "LastY" instance variables and the "Drag and Drop" behaviour:
You'll need to add an animation frame for each object you want to store in the array:
The "Slot" will only have the "Slot_Nr" instance variable:
This is how the layout looks:
An finally, this is the code (with comments):
Link: dropbox.com/s/vihkr5qsl3iq3r8/Code.png (Too big for a photo =D)
Let me know if you didn't understand something.
Thanks for the Reply! <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy" />
Well, i figured some invent system out, but your sounds better. <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy" />
Heres the project, take a look, show me how youd do your stuff <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink" />
Anybody is invited to drop some knowledge. :3
dropbox.com/s/50aeq17wmq1ao ... .capx?dl=0
Cheers!