How do I disable all objects within my unused layer

0 favourites
  • 3 posts
From the Asset Store
Welcome! I-Spy (Hidden objects) is an educational puzzle that is more than just seek-and-find activities.
  • Hello

    In Construct 2 it is necessary to have at least one instance of an object type in any layer in order to create another instance by an event.

    Since nearly each object in my project is created by script, I use a specific layer called "Unused" which is invisible and contains exactly one instance of each object which should be spawned by script.

    Now the problem is that my invisible enemies within the "Unused" layer are attacking the player.

    Does anybody know a best practice to handle that problem? Should I delete all objects within the "Unused" layer on start? Is there a more elegant solution for this like "deactivate" layer or something?

    Thank you guys!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 25games

    Put all objects in an unused Layout instead of a Layer, then you don't need to hide or delete them, but can still spawn them by script.

  • Oh, that's it! I was just confused by the diffrent terms "Layout" and "Layer"

    Thank you very much

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)