Draw a picture with a script, with viewport 1 (under the character)

Hi, i´m trying to build a script which displays a simple picture, but under the character.

  • Im using Rpg Maker Xp

Here is an example how i create a picture (which is unfortunately over my character)

class examplepicture < Sprite def initialize viewport= nil super viewport refresh end def refresh @Picturexyz.dispose if @Picturexyz @Picturexyz = Sprite.new @Picturexyz.bitmap = RPG::Cache.picture("examplepicturexyz") @Picturexyz.x = ($game_player.x ) @Picturexyz.y = ($game_player.y ) @Picturexyz.z = 0....I have a script which allows me to display picture 1-10 over the normal rpg-maker engine under my character, but this one must be displayed over my own script....

I looked into this and some other scripts, but I can´t figure it out.

Hope you can help me >.<

Original thread: https://forums.rpgmakerweb.com/threads/draw-a-picture-with-a-script-with-viewport-1-under-the-character.20000/