Put object on top

0 favourites
  • 4 posts
From the Asset Store
Combine 3D forms like a half-sphere representing the sky, an elongated oval, a passageway resembling a tunnel, and assor
  • Hello,

    I got a simple, but serious for me trouble. When I started to create game I used only one layer. Now it's a time to put a background image. I created new layer at bottom. So after this I got next problem:

    <img src="http://i42.tinypic.com/513orp.png" border="0" />

    Before red square was on top of green object. After adding new layer it looks like this. I tried to use Z-Order: Move on Top for red object, but no any results.

    After this I added new action for green object Z-Order: Move to Bottom. Still no result.

    Polygon collisions are correct, so red square should be on black line in the middle on green object.

    Can somebody help in this situation?

  • Please post your capx.

    But sounds like both objects are on separate layers, and the layer with the ground on is on top. Click on the layers tab and drag it to the bottom.

  • Yes, you are right! When I added new layer I didn't change events and red object spawned at layer #0 which is background. Thank you!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • No problem.

    Also in future if you plan to move objects around dynamically, and your going to be adding more layers. Instead of setting the layer to its numerical value, set it to its layer name.

    For example:

    System.onStartOfLayout

         ->Object.MoveToLayer("Background")

    So that way if you need to move things around and add more layers its easier <img src="smileys/smiley1.gif" border="0" align="middle" />

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