lionz's Recent Forum Activity

  • > Do you mean a patrolling enemy that changes direction when it reaches the platform edge? You can put invisible sprites at the end of the platform, when it touches one of them toggle a boolean that relates to simulating left/right on the enemy platform behaviour.

    I would like a solution that does not require a physical barrier, that works in a more universal and adaptable way. There will not always be a wall in front of the enemy. Sometimes there will be a precipice.

    So that works then, you place the invisible sprite wherever you want.

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

  • I'm not familiar with the game but if it is going to be hundreds of scenes you could try to combine them several into one layout just because it might become difficult to handle with so many layouts. Also if the game is made up of only few graphics you shouldn't be concerned about performance issues anyway.

  • Ah yeah sorry. on the Contains value itemname comparison in HUD change the value ItemPosition.IndexOf(ItemName) + Quantity to ItemPosition.At(ItemPosition.IndexOf(ItemName),2) + Quantity.

    I think that auto fixes the other problem too ?

  • The opposite actually as it only loads what is in the current layout. Putting everything in a single layout is where you would have the performance issues, though I believe there is something where you can unload graphics that are not being used if you prefer to do it that way.

  • Do you mean a patrolling enemy that changes direction when it reaches the platform edge? You can put invisible sprites at the end of the platform, when it touches one of them toggle a boolean that relates to simulating left/right on the enemy platform behaviour.

  • When asking for help please mention the actual problem you are having

  • Yeah that's the best idea unless it makes more sense to change the background in the same layout and spawn objects based on stored co-ordinates.

  • You should be able to use indexof "0" since you used that for empty slots, so at the top of the add item function set cur slot ID to array.indexof("0"). If you have a problem you can send the file again.

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 73 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