GMS 2 How does sprite layering in NES Final Fantasy(s) work?



I was kind of interested in it because I somehow just noticed this, but in all of the NES Final Fantasy(s), the trees in the Overworld do a layering effect while the player passes through them.

As you can see, the head stays above the trees while the lower half is behind the trees. Then, the bright green pixels are actually transparent pixels, and the grass tiles underneath them make the trees look more vibrant.

So my basic question is how do you take a single sprite and seperate two parts of it (the top part, and the bottom part) onto different layers (without seperating the sprite into two sprites), specifically in GMS / GMS2? If its even possible in the first place?

(please note that I'm quite a beginner but I thought it was an interesting question)


Last edited by a moderator: