[SOLVED] Copy the visibility of other sprite object.

0 favourites
  • 5 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • Hello, please, as I point to an object sprite visibility should be another sprite visibility?.

    I mean:

    sprite1.visibility = sprite2.visibility;

    If I choose set visible, I have only two options: "visible" and "invisible", I can not create an expression to indicate the "visible" value of another sprite.

    So how do I do?.

  • I guess you want the opacity?

  • If I understand you correctly, you are wanting to set a sprites visibility state to that of a different sprites visibility state?

    Why not just use a variable as an intermediate step?

    If sprite Is Visible Set Visibilty = 1

    Then the other sprite can just check the variable when it needs to.

    Is this the kind of thing you mean, or have I totally missed the point (possible )

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If I understand you correctly, you are wanting to set a sprites visibility state to that of a different sprites visibility state?

    Why not just use a variable as an intermediate step?

    If sprite Is Visible Set Visibilty = 1

    Then the other sprite can just check the variable when it needs to.

    Is this the kind of thing you mean, or have I totally missed the point (possible )

    Yes, that meant.

    But I thought it could be done using an expression as I said before.

    Ok, then I will use a variable.

    Thanks guys.

  • Or

    As a condition you can use

    is sprite a visible? (inverted)

    Then as an action

    set sprite B's visibility to invisible

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