Change default behaviors for families on creation

0 favourites
  • 3 posts
From the Asset Store
Build your own spaceship with the various components in the pack
  • I am using the family behavior "Fade" and everything works just fine when I already have an instance of the object on the screen on the start of layout. BUT if I create an object that is NOT already on the screen, it defaults to the standard fade behavior which is

    Start time 0

    Fade time 0

    Fade out 0

    Enabled True

    Destroy True

    What I would like to do, it to just not have this enabled by default so that I can tell the object when and how to fade in on creation.

    It seems like I was successfully able to do this in a past project, but maybe that's because I already had an instance on the board.

    Is there no way to change this default behavior for a family without having one on the screen?

    I could workaround this by putting one on the screen and deleting it on start (I'm using this particular object's position so I can't have it just stay outside of the layout), BUT I was hoping for an easier option to just uncheck that family behavior by default on creation.

    I also didn't see any "set enabled" option for FADE.

    Thanks for any help you can provide!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can create a separate layout and call it something like ObjectRepository or ObjectDump and place an instance on there.

    you don't ever have to switch to that layout or use it in any other way. Just having an instance that exists allows you to set the default settings you would like to have set.

  • Thanks AllanR, that's a good solution. I'll give it a shot.

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