LucasJanela's Forum Posts

  • Hi I has finishing the next update of my game and was wanting to do a crafting system like Terraria/Stardew Valley, but I'm struggling with making it work well

    How it works: There is a button for the craftable item that allows you to get the item, but removing the materials for it.

    The crafting system

    The adding item function(working fine)

    And I use three arrays: One to store each item's position at an array(has Name, ID, Quantity), other stores info about, like description, rarity, etc and the last one stores the recipes available

  • I found something wrong on the new code: The items stopped being able to stack, now when I try stacking, the amount turns into the ID of the items on the inventory. Also, when I click on a potion item that amount is over 2, all are used, but I wanted to make only 1 item get removed.

  • here is the link: drive.google.com/file/d/1gt84imsdlNiDPzeYSZ8Jt9Uw0_hRQ7N-/view

    Note: Only the potion items can be deleted and their code is on the "player" event sheet at "Player Buffs & Debuffs" group

  • And how I check the first columm with 0 amount? I saw other forum posts and didn't saw anything

  • Yes, but I was saying that when I delete an item, it glitches

  • I was saying that when I pick up an item, it was added to the empty slot, but when I pick up a different item, it doesn't appear on the next empty slot.

  • Hello again now I'm struggling on: when I left click on a item, like a potion, it substract it's amount or, if the amount goes to 0, the item gets destroyed. The problem is: when I add an item again, it's added only on the slot that had the deleted item, so when I get another item, it can't go on front of the last inventory slot

    here is the updated code

    and the code to delete the item, or substract it's amount

  • Thank you! Now it's finally working.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You could test them at the “test” level. In it there are some diferent items. Also, press I to open or close the inventory

  • drive.google.com/file/d/1gt84imsdlNiDPzeYSZ8Jt9Uw0_hRQ7N-/view

    NOTE: the inventory system is on the "HUD" event sheet

  • Now it's only stacked the next slot, that's empty. Also, all the FontInventoryQuantity objects are displaying that

  • I'm trying to make an inventory system that can stack items. Currently, the items can be collected, but when I collect the same item I collected before, it only stacks at the first column. Could anyone help me?

    here is the array above (ignore the slots without 0s(I added them))

    the event sheet above

    and the variables I used

    Also, the font that display the amount of items stacked show of the first column as well.

  • Hello I'm trying to change the list font by existing spritefont in project by using Set CSS Style. Is there any way to do it?

  • You do not have permission to view this post

  • Thanks! Now the sound is working.