ealezel's Forum Posts

  • 4 posts
  • Hey,

    I got the following situation:

    1. I'm picking one instance of object by compare of type A.

    2. Checking foreach object of type B if the B object is overlapping with picked instance of the object A.

    3. Do action on object B

    My problem, is that object A and object B are placed in the same container and the result of the operation above is that foreach operation is only searching for the objects of type B which are belongs to the picked instance of type A.

    This is how containers work. I know that we could escape from the picked instance by using a function but I really struggle how the solution should look like in this case.

    I want to take an instance of type A and loop trough all objects of type B regardless of the container's relationship.

  • Thank you for your replies. You helped me to settle down with this.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks, this info is also useful for me, but this is not exactly that I was asking for.

    I mean, that I can't find the way to change the Initial Layer of an object such as ProgressBar via an Event Sheet.

    For example for a sprite object, we could do it via Action: OurSprite : Move to layer ; new layer

    But for ProgressBar there is no such an option like for Sprite.

    If for example i want to hide a progressBar by moving it for a specific layer together with the sprite it is attached to, what should I do in that case?

  • How do I move a ProgressBar/Button or other components which doesn't have this "Move to Layer" option to another layer via Event Sheet?

    I could easily do it then I'm on a scene editing, but how can I do it via an Event?

    This "Layer" property is in a common property group but i can't find the way operate it via scripting...

    Could anybody help me with this?

  • 4 posts