0 Favourites

May I Have Some Help With My Inventory CapX Please

  • Whatsup everyone,

    I am having some issues trying to implement a drag and drop feature within my inventory capX file.

    EncryptedCow is the one i paid to make this for me since at that time i had no experience to comprehend the inventory and arrays.

    I am desperate need of help in regards to this inventory capX,Im trying to figure out how i can make items transfer from one slot to another by drag and drop.That is the last thing i need before i can move forward and im not sure at all how to create the effect within my inventory.

    I just want the player to be able to take his/her finger and drag an item from one slot to another if that is possible.

    This is the final aspect of my inventory for this project i would love to learn from someone who knows of this if possible.

    Thank you guys! I wouldnt be where im at right now if it wasnt for this forum and community.Here is the link to my fileINVENTORY CAPX

  • Give the inventory items drag/drop behaviour? <img src="smileys/smiley29.gif" border="0" align="middle" />

  • Give the inventory items drag/drop behaviour? <img src="smileys/smiley29.gif" border="0" align="middle" />

    Preposterous, you would be dragging and dropping them all over the place.

  • > Give the inventory items drag/drop behaviour? <img src="smileys/smiley29.gif" border="0" align="middle" />

    Preposterous, you would be dragging and dropping them all over the place.

    That's what he asked for. A drag and drop feature lol. I used the same thing for my inventory.

  • *makes note to work on sarcasm*

  • wow..lol

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • lennaert plinkie

    Thank you both,even if its sarcasm your reply is welcome.I really do need help regarding this topic in general.Thank you both for your replies i just wish it was alittle more on the topic.By any chance does anyone have any knowledge on how i would do such a thing?

  • Give the inventory items the drag/drop behaviour. For more info look at the manual on here.

  • Thank you both,even if its sarcasm your reply is welcome.I really do need help regarding this topic in general.Thank you both for your replies i just wish it was alittle more on the topic.By any chance does anyone have any knowledge on how i would do such a thing?

    You have a bit of an odd inventory to my liking, I implemented a simple drag and drop and by moving them over the equipment slots, you equip them, if you let them go, they go back to their spot.

    example

    capx

  • lennaert Thank you for your help! and Thank EncryptedCow for the great inventory,He created it for me.One question i have is.Can you make it so when i grab an item from the inventory and i drop it on a different slot it replaces it? Thats really what im aiming to do rather than equiping it.

  • lennaert Thank you for your help! and Thank EncryptedCow for the great inventory,He created it for me.One question i have is.Can you make it so when i grab an item from the inventory and i drop it on a different slot it replaces it? Thats really what im aiming to do rather than equiping it.

    It does that already.

    grab a red and orange item, and swap them with the top location.

    your colored items only fit on certain sqaures.

  • lennaert Im not understanding what you mean by"colored items only fit in certain squares"All the squares are the same as the tile size and Im dragging the red block tile over the orange and they are not swapping positions at all.

  • lennaert Im not understanding what you mean by"colored items only fit in certain squares"All the squares are the same as the tile size and Im dragging the red block tile over the orange and they are not swapping positions at all.

    It means, the colored items are items with types, like helmets arm and leg plates and body armor.

    The row on the right is a figure, probbly depicting a body: in the top square fits helmet, below that arm plates, torso items then and at the bottom leg items or shoes.

    The red and orange sqaures are helmets, they fit in the top square.

    So you dont have a simply inventory, you have a charatcer item placement shield with small inventory.

    the items lined up on the left is actaully your inventory, what selected on the right, is equiped.

    Havent you noticed, that when you place items in the right side, that the character actually starts wearing it ? look at the helmets for instance, your character then actually wears a red or orange helmet.

  • lennaert Thank you for taking the time to help me out with this issue.

    Do you know how to implement this feature to the slots on the left?

    What im trying to do is once the item is dragging and over the desired slot i wanted the item to swap places with eachother along with the amount.

    Youve created this in the equipment slots and that isnt the slots for my inventory even tho they will be used aswell.

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