# Draw Order 2D RPG Game 

**URL:** <https://forums.unrealengine.com/t/draw-order-2d-rpg-game/2530678>\
**Category:** C++\
**Tags:** unreal-engine, question\
**Created:** [May 27, 2025, 9:32pm UTC](https://forums.unrealengine.com/t/draw-order-2d-rpg-game/2530678 "2025-05-27T21:32:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![REAL14DEAL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@REAL14DEAL](https://forums.unrealengine.com/u/REAL14DEAL)\
**Post date:** [May 27, 2025, 9:32pm UTC](https://forums.unrealengine.com/t/draw-order-2d-rpg-game/2530678/1 "2025-05-27T21:32:56Z")

</div>

I am making a 2D top down rpg game in UE5 using a tilemap and sprites. I have a character sprite that I can move around the environment. For example, I have some grass but the character appears above or below the grass based on what layer in the tilemap the grass is on. How do I change the draw order of the game so that it renders based on vertical position?

 ![Screenshot 2025-05-27 at 3.31.53 PM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/4/f/04f3ac575841ca5ca88662da78196a590ae845c1.png)

---

<div class="post-metadata">

**Author:** ![Kemichar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kemichar/32/1069671_2.png) [@Kemichar](https://forums.unrealengine.com/u/Kemichar)\
**Post date:** [May 27, 2025, 9:43pm UTC](https://forums.unrealengine.com/t/draw-order-2d-rpg-game/2530678/2 "2025-05-27T21:43:38Z")

</div>

Give this a try in `Edit -> Project Settings`. Don’t forget to set the axis as well.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/3/af351b1410e24df879cdfc0b905faca4ef78f8b3.png)

---

<div class="post-metadata">

**Author:** ![REAL14DEAL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@REAL14DEAL](https://forums.unrealengine.com/u/REAL14DEAL)\
**Post date:** [May 27, 2025, 9:48pm UTC](https://forums.unrealengine.com/t/draw-order-2d-rpg-game/2530678/3 "2025-05-27T21:48:00Z")

</div>

I tried setting it to -1 and 1 for the y-axis, still the same problem.
