lionz's Recent Forum Activity

  • When you create the green sprite it is not related to a particular enemy. You can add the green sprite to a 'Container' with an enemy, that means it is created with the enemy at the start (you don't need to create it) and also it is always related with the enemy in picking conditions.

    Then for the actual event if you say green sprite on collision with mine -> destroy green sprite. It would also destroy the enemy with it as they are in a Container. Note : your current condition pick with UID doesn't do anything.

  • Welcome! Not really a tutorial but check out the example game file with Construct called 'Pop Lab'.

  • Sorted it here, I made the type sword and shield fixed to each slot I don't know if that was the intention but I guessed so since they were named as such and had animations.

    dropbox.com/scl/fi/u130jr1uaqkytf661j21s/game_edited-2.c3p

  • Please post screens using x,y and also a screenshot of the recipes sheet.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Your inventory should be made up of slot objects that you can give IDs that match the row ID in the array. So if it is 9 slots across for example, 0-8 in the array account for the first row, then 9-17 in the array account for the second row. You don't need to move between any row of the visible inventory as the array rows (X) each refer to one slot. So the logic you have now, if 0-8 are all occupied it means the first visible row is full and it will then continue onto 9 and beyond which starts the second visible row.

    To expand on the slot object variable ID in case you were not already using that, each slot can have a variable ID that refers to their place in the array. So the first slot.ID=0 and the second one is slot.ID=1. Then for example if you were to show a description on hovering mouse over the slot it would be set text to array.at(slotID,1). The slotID refers to its row in the array.

  • 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.

  • 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.

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 75 followers

Trophy Case

  • 11-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

24/44
How to earn trophies