[Solved] Z order and container

This forum is currently in read-only mode.
  • Hi everyone !

    My question is pretty simple :

    How can I preserve the Z order of my sprites (exemple:"windows, door, etc...") which are contained in an other sprite ("home") when I spawn the sprite "home".

    Exemple image :

    Original :

    <img src="http://data.nimages.fr/h01wf7.png">

    When spawned :

    <img src="http://data.nimages.fr/h02oq4.png">

    Thanks in advance !

  • There is no z index, only z order, and z height.

    Currently z order is set to the order in which it was created in the editor. To change the z order in the editor simply right click the object and use the context to set its order, or Cntrl-arrow I believe.

    Now this z order may not be preserved if the object is destroyed during, or at run time, so to set it correctly simply change its z in the same condition that is created. In this case.

    system create object window

    ->window place in front of house.

    This will move just the window that was just created, since it was placed into the S.O.L.

    Also you might check the Construct wiki for "container"... it means something a little different here.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It works, thank you very much

    (by the way, I edit me post title (with Z Order))

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