How do I stop a flickering sprite on Load image and globals?

0 favourites
  • 3 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 layers. On one of these layers I have a sprite, 1 frame, 0 speed.

    When I Load image into the sprite it flickers. This sprite is not global but is on a global layout.

    Otherwise, when I make the sprite global and is on a global layer it stops flickering, but unfortunately makes another instance of the sprite when I move to a different layout.

    Are sprites on a global layout considered global objects while on said layout? Or do I need to go through and make each object global?

    Also, why is it making a copy of the global object when switching to a different layout? How can I resolve this?

  • If a layer's Global property is enabled, then every layer in the project with the same name is overridden by that layer. The initial objects, as well as its properties, are used instead of the other layer's own content and properties. Then changes can be made once to the original global layer, and the changes will be applied project-wide

    Global

    By default, all instances are destroyed when the layout ends (e.g. when going to the next layout). If enabled, none of the instances of this object type will be destroyed when switching layouts.

    The two are distinct and not really related. The manual describes what each does pretty clearly. What are you trying to do?

    If you have a global object on a global layer, the object will not be destroyed upon leaving the layout, and because the layer is global there will be another copy created on the new layout that has its own copy of the global layer.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Just trying to figure out how to properly navigate using global layers and objects:) Thank you for the details and clarification it helped me a lot!

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