0 Favourites

Put object on top

  • 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?

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • 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!

  • 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:



    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)
Similar Topics Posts Views Last Post
Unread hot topic
167 14,500
DMT2005's avatar
Unread hot topic
123 14,873
Zebbi's avatar
Unread hot topic
0 Favourites
Top 10 Games
70 15,927
Rodak's avatar