How do I make a crafting system?

0 favourites
  • 2 posts
From the Asset Store
Template for maintaining an inventory with crafting possibilities. Completely documented in text and video.
  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The main problem you'll have here is itemicon doesn't relate to any item. You do check for it in a condition as values 1 and 2 under recipes but you don't store them. You'll need to access recipe 1 and 2 again in the action to replace itemicon. If you store some of the data in local variables it might be easier to work with.

    If you need more help you can send the file but please leave two items near the player that they need and an idea of what is being crafted.

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