lionz's Recent Forum Activity

  • Well a couple of things, you don't need Z as it'll just be confusing at this point so when using array actions use set at X,Y. And you have added 2 loops you just need the 1. The point of my loop is to run through the rows, the 'loopindex' is the iteration of the loop which is also the number of the row. Because you only have one loop you don't need to specify the name of the loop and just use loopindex. Think of loopindex as the number of the row or X. If you take out the second loop then this should work as intended.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you mean the object name I don't think that's possible but if you describe in general what you are trying to do in the game, maybe there is a better way.

  • It's confusing to read with the Z, I would keep it as X,Y as I described above where you have item, ingredient, amount, ingredient, amount and it should be a lot easier. If it still doesn't work with 2D array share the file and I will have a look.

  • Ah ok using Z, so all good ?

  • Use 2 blocks/sub events : multi = 0, Else multi=2 and is host.

  • You can press S to create a sub event and add 'is host' there

  • make sure the correct event sheets are assigned to the layout.

  • So is it working ? I think the recipe bit should be a bit shorter but I'm just doing it from reading. Like in recipes indexof crafting icon name + column should be enough and the column would be different for item 2. If you have done recipe in the format (name,ingredientA,quantity,ingredientB,quantity) columns would be 2 and 4 for example.

    Also for quantity where you're subtracting it looks ok except don't look for index of the items as they may appear in more than one recipe, always look for the index of the item name you are crafting which is the start of the recipe.

  • Here is a screenshot of what I mean

  • Well again it needs to be much simpler than what you have, you don't need so many loops and you don't need variables to track next available x and y. Also be careful using loopindex("x") as the x is for the name of the loop which you don't have.

    You need a simple system 'for' loop, for from 0 to array.width. This runs down all the rows. Then with this the condition array.at(loopindex,0) = 0. Then on the right side actions, you have Stop loop, and set the other columns to what you want so for example set array.at(loopindex,1) to an item name, array.at(loopindex,2) to an item description.

    So yeah that's all you need to set up what you want I dunno how I can make it clearer than this :D

    Also you never posted what the array looks like but make sure the empty slots are actually 0 and not just lacking any value so it would be "" instead of 0 if that's the case.

  • Lets see the new events?

  • You could use a variable for total number of mines and compare it to number of Cells where text = []. That means you've won I think, if there are x mines and you have x cells of text [].

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 79 followers

Trophy Case

  • 13-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

26/44
How to earn trophies