How do I render objects

I am making a topdown game but I need to render the player on top of an object when you’re below the object and below the object when you are above it.

There are two ways that I’d do this:

1. pumpkinhead’s Layers Code

Use pumpkinhead’s layer code to be able to send clips forwards, backwards, to front, and to back using code.

2. Split the Isometric Piece

Turn the isometric piece into two separate clips: the top view, and the right + left view. The top view can be in a layer over the player, and the right & left view of the piece can be below the player’s layer.


(EDIT: I just noticed it’s a topdown game, not an isometric one. These methods should still work)