Draw Sprite under Characters

Hi,

 I want do draw some sprites under the characters and others above, is there a way? My current method to draw sprites is this

var myBitmap = ImageManager.loadSprite('image');var mySprite = new Sprite();mySprite.bitmap = myBitmap;SceneManager._scene.addChild(mySprite);Thanks 🙂

EDIT: btw i just discovered that closing the 'esc' menu deletes the sprite created.
see this plugin, you will find your response : http://tonyryudev.com/joomla3/index.php/menu-mes-developpements/menu-script-rpgmaker/48-mv-pnj-name
Thank you very much for the reply, the fact is when i said i want to draw the sprite under the character I ment like a layer under the character.

Now the sprites prints in the x and y that i want (and i resolved the bug that canceled it when i closed/opened the menu) but is the "z" u want to change, I want the characters to have priority in wich of the 2 should go on top, but anyway i think that i need to tied the code with the creation of the tilemap sprite. Anyway thank you 🙂
Find the index of the player sprite, and then use addChildAt instead of addChild.

Original thread: https://forums.rpgmakerweb.com/threads/draw-sprite-under-characters.53188/