How do I animate global object instances with timelines in multiple layouts (w/o dummy instances)?

0 favourites
  • 1 posts
From the Asset Store
Globals 2.0
$3.99 USD
Globals 2.0 stores and group variables. You can also load and save data (variables) from/to JSON files.
  • I have some global object instances living in layout A. I also have a bunch of other layouts B, C, etc. I want to create timelines that animate these instances in multiple layouts, but global objects only appear in layout A (the layout they're created in) in the editor, so I can't animate them directly in timelines in other layouts.

    I've gotten around this by creating dummy instances in B, C, etc. and animating those, then at runtime using Set instance to replace the dummies with my global instances, but it's a lot of extra work to manipulate event sheets, track IDs, dummy instances as I'm working on each animation.

    I also tried having a global layer with non-global object instances, because they appear in all relevant layouts in the editor. Unfortunately it has a serious downside: the object instances that appear on a global layer are destroyed and recreated when you move between layouts, so they don't really behave like global objects. Some of my event sheet code that works when the instances are global breaks when I change to global layer + non-global instances, and adding the persistence behaviour doesn't help, so long story short objects on global layers don't behave exactly like global objects.

    Before I go down a rabbit hole debugging why it doesn't work, does anyone know of a better way of working with global objects + timelines that isn't so tedious?

    Here's something I wish C3 had:

    Global object instances should appear in all layouts (that have a layer with the same name as the one they appear on) in the editor so they can be animated. I think it would solve a lot of timeline problems.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)