lionz's Recent Forum Activity

  • You probably mean Z order which is to move it above or below but on a given layer.

  • This sounds like a common problem where it sets to 1 and in the same tick the next condition becomes true so it sets it back to 0 all in the same click. Add an 'Else' to the second condition and it should fix it.

  • Yes you have the right idea. With a loop, so system for each(ordered), use slot and ordered by ID. Then off this a sub event if slot=empty : set item/fill etc, and also system Stop loop.

  • This is a little confusing only because you have to pick 2 of the same object and apply actions and you need a kind of workaround. For example if object A passed to object B you could say set A inactive and set B active, but because they are the same object and you need to pick both the active and inactive player then the picking is a little more difficult.

    My approach would be ball on collision with player (where player is set to inactive), grab this instance ID so lets say it is player01. Then you set all players to inactive, then you use system pick all players to open them all up to being picked again (this is required as when you did the initial on collision event you narrowed the player to one instance), then finally you pick player where id is 01 and set them to active! This is all in one event done with sub events.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Depends on how you are making that player active, you could for example set the player to active on ball collision, 'active' being a variable on the player. Then you have an event for whichever player is active, the controls are enabled, else for the others the controls are disabled. For the AI you could have another variable to mark them as AI or it might be easier to use a second object for this.

  • Maybe. Usually you use that operator as a condition. If you want to set position to two possible values then use a condition to give two options like if A else B then set the position.

  • Destroy the circle and create it new each time. Or set its angle back to the default value...

  • That is a lot of events so someone would have to sit with the file and take a look. As a practice I don't like using Else and also system conditions when working with enemy behaviours. I find it useful to have timer behaviour on the enemy and also a variable for their 'state' that you can use to have some control, when you are relying on animations only it can get a little confusing.

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

lionz's avatar

lionz

Online Now

Member since 5 Aug, 2013
Last online 20 Feb, 2025

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