showPicture z order

Hi
I am trying to draw some pictures above tiles to indicate valid move positions but the problem is they are drawn above the player character and NPCs. is it somehow possible to draw them above terrain but below the characters?

thx!
there are some plugins to allow that, cant remember which one.
it is possible with ParticleEmitter plugin (this is a bit advanced)
but some use it for parallaxing and other things as you can control
the layer nicely from below to above player.

there was another plugin to allow picture below player, above and
below/above animations, but I dont know the name currently.
There is a plugin to do that in the MV Steam DLC folder -> RPGmakerWeb_plugins -> Galenmereth (if you're using STEAM). Also google will bring you other results.
(Also, maybe you could show the arrows with empty events set to below player, but that of course depends on other factors too.)
Thx, im trying to use the TDDP_BindPicturesToMap.js but everytime I try calling
$gameScreen.showPicture I get error property 'x' undefined
And I am not trying to call the bind function, just activating the plugin causes this
you do know that $gameScreen.showPicture(ID, fileName) does not work?

JavaScript:
$gameScreen.showPicture(pictureId, name, origin, x, y, scaleX, scaleY, opacity, blendMode)
Example:
$gameScreen.showPicture(12, "File", 0, 10, 10, 100, 100, 255, 0)

it require ALL arguments in order to work + I think BindPictureToMap
only work with direct picture loading from the command on 2nd top on the
bottom to show a picture there.

unless it has an eval to do it with a scriptcall as well.
@ShadowDragon yes, this is what i use:

Code:
var id = 1 + this.gridImages.length;

 $gameScreen.showPicture(id, "Move", 0, xPos * tileSize, yPos * tileSize, 100, 100, 190, 0);

this.gridImages.push(id);

The code that eventually causes the crash
if you use it just like that, xPose * tileSize are never defined, so did you
define it as well above? same for yPose? if not, you fixed numbers.

BindPictureToMap don't work with scriptcalls as the ID's are not in the editor,
so you need to use the picture command in the editor itself on tab 2.
and set location there.

however, if you can define xPos * tileSize (and return a number) use that in
a variable x (variable 5 = xPose) and (variable 6 = yPose) and use the scriptcall
in those variable to define the picture location with those variables.
if you use it just like that, xPose * tileSize are never defined, so did you
define it as well above? same for yPose? if not, you fixed numbers.

BindPictureToMap don't work with scriptcalls as the ID's are not in the editor,
so you need to use the picture command in the editor itself on tab 2.
and set location there.

however, if you can define xPos * tileSize (and return a number) use that in
a variable x (variable 5 = xPose) and (variable 6 = yPose) and use the scriptcall
in those variable to define the picture location with those variables.


oh the code I posted works , it renders the images as supposed to. its just that with the BindPictureToMap plugin enabled I get the crash (somewhere deep in the sprite update code)
and if I comment out the call to showpicture then it wont crash
I got it working by commenting out these two lines in TDDP_BindPicturesToMap.js :

Code:
// this._offset.x = picture._offsetX;
// this._offset.y = picture._offsetY;

in line 199

(_offset was undefined)

no idea what feature I disabled by doing so 🙂
Better fix:

Code:
        if(this._offset == undefined)
         this._offset = {x:0,y:0};

        this._offset.x = picture._offsetX;
        this._offset.y = picture._offsetY;
anyone else have lag when using BindPictureToMap?

Original thread: https://forums.rpgmakerweb.com/threads/showpicture-z-order.161853/