lionz's Recent Forum Activity

  • Describe the design you are trying to mimic by resetting only a specific object and I'll guide you on how to make it.

  • Under what specific scenario would you need to use that ?

  • Just sounds like an error with picking, you need to tell each one where to go. You also didn't say what logic or behaviours you are using or share any events, kind of impossible to help.

  • Yes you can remove the Persist behaviour. What I think you are describing is an inventory that appears on HUD right so making it global is good for this. I don't think you should use both a global layer and global object. When I look at how a global layer works, it deletes and creates new instances between layouts and you don't want this, probably this method is only good for pure UI display and not objects that have values you want to keep. Global objects keep their same position between layout so should work well.

  • Try making the slot objects global. Persist is for when you return to the same layout, not going to the next layout.

  • You do not have permission to view this post

  • Put Base and Torso in a 'Container' (see manual for more info). This means when you create a Base, it will also spawn a Torso, and they will relate to each other in events automatically without having to use variables.

    Also I'm not sure how you created a custom variable called Count, that shouldn't be possible afaik.

  • I use local storage and save a value there. Global variable won't make much sense bceause that would be included in the saved game which means you need to load it first.

  • You can use a variable on the player, so on the E event for picking, set to true in an action like for example player.hasItem=true. Then on the condition for the E key press event you can say 'if player.hasItem=false', so E only works if they are not carrying an item.

  • That's just how Construct works so I can't see a way around it, you pick instances of an object and apply actions to those instances.

  • If you are applying the same events on multiple objects then this is where Families are useful for grouping objects and applying to Family / all. Instead of separately picking object A and object B by UID, you can pick the Family.

  • You need to know the object type so you can apply the proper actions to it. Why don't you know what object it is ?

  • Try Construct 3

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

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

lionz

Member since 5 Aug, 2013

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