[Suggestion] Enable/Disable Instances

  • Disabling an instance would cause it to become invisible and not be effected by any events until it is enabled again.

  • I actually support this idea very much.

    Its annoying when I need to disable all the events in a group relating to my character, as well as one by one disable each behavior, make it invisible. Then finally, reverse this process to make him appear again.

  • Disabling an instance would cause it to become invisible and not be effected by any events until it is enabled again.

    It can be made using simple events.

    Make a Boolean instance variable called ON_OFF inside the instance you want disable.

    Make all the events for this instance check if the variable is ON, set it visible, so, when it's not ON, it'll not reproduce any of the events nested in it.

    Also, make a new event checking if the instance if OFF, when OFF, set it invisible.

    It will affect each instance individually, and only the instances with the variable ON will be affected by the events.

    For more info about how instance variables works, please, read this single tutorial: Understanding UID, IID, Health of Enemies and Rocket smoke trail.

  • I would put them all in one family and then do what telles0808 wrote.

    Disabling an instance would cause it to become invisible and not be effected by any events until it is enabled again.

    Enabling/disabling instances could be extremely confusing. From what you wrote, you could easily destroy and create sprites when you need them.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • shinkan but it'd lose all it's instance variables.

  • Indeed, it will loose all variables... but still it's easy to walkaround.

  • Not without a bunch of global variables though, right?

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