Laura_D's Recent Forum Activity

  • Afraid I know nothing of overheads - at that point I'd usually try and create mini versions of what I was trying to test and compare the two.

    Usually I just chuck everything into as few files as possible so I only have to fetch the file once when the game/project loads. I've never tried looking at multiple files at runtime!

  • I'm still getting used to working with JSON, Arrays etc so I'm kinda figuring it out as I go along, but I'll try and answer what I can!

    In terms of the For Each loops, you can nest them like this:

    Which in an incredibly basic example would pull out the data like so:

    So you could in theory compare each entry in the components list with some ingredients stored in an array and see if they match the recipe.

    In terms of bringing count into it, it would depend on how you've set up the 'inventory' section of your crafting system. In the one I've built, I use a dictionary to track how many of a given item I have, so again you could check the value stored in count against the number stored for an item in the dictionary and if you've got enough, then subtract the count from the dictionary value.

    I'm still trying to build out my own crafting system, so I'm going to try some of these ideas myself and I'll let you know how I get on.

    Sorry I can't be of more help!

  • Not 100% sure if this will help you Vallar, but I've been messing around with crafting system ideas myself. This test project might be a bit too simple for what you're looking for, but it may give you an idea of how the JSON events could work if you wanted to go down that route. Depending on how many crafting ingredients you have, you could probably swap out the Global Variables for an Array, but I've not gotten that far yet.

    Ignore the filename, the project started as a drag/drop thing, and I've not gotten around to renaming it!

    Crafting Test Project

  • Moved to the C3 section as per request.

    • Post link icon

    adamlg If you're enquiring on behalf of your school, please email ordersdcv@scirra.com to talk about upgrading.

  • jleiva please note that this is an English-language forum, so you should be posting in English. Google translate is fine if English is not your first language.

  • inetgames Please bear in mind that this is an English-language forum, so you should really be posting in English only. Google translate is fine if English is not your first language.

  • Mr.Bairos Please bear in mind this is an English-language forum so you should be posting in English. As Dop has said, please use Google translate in future.

    • Post link icon

    As we mentioned back in February, we have begun the process of sunsetting Construct 2.

    This is a reminder, that the second stage of that process is quickly approaching - Construct 2 will no longer be available for purchase after this Wednesday, July 1st, 2020. Anyone wishing to purchase Construct 2 can do so from the Scirra Store until that date.

    We will still be offering essential bug fix and compatibility support through until the 1st of July 2021 as per the retirement schedule covered in our original announcement blog post.

    We'd like to take this opportunity to thank everyone who has supported Construct over the years, and we hope you continue to enjoy using the program.

  • You do not have permission to view this post

  • You do not have permission to view this post

  • As Maverick said, this is an English-language forum, so you should be posting in English.

    Also, moved to the more relevant Job Offers and Team Requests section

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Laura_D's avatar

Laura_D

Member since 3 Jun, 2016

Twitter
Laura_D has 1,439,595 followers

Connect with Laura_D

Trophy Case

  • 8-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • x26
    Coach One of your tutorials has over 1,000 readers
  • x5
    Educator One of your tutorials has over 10,000 readers
  • RTFM Read the fabulous manual
  • x2
    Lightning Draw First person to up-vote a new Construct 3 release
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

16/44
How to earn trophies

Blogs