To give you an idea of the problem I'm dealing with. I'm trying to get a number of pictures to appear "below" the player/event or tilemap layer by adjusting the pictures Z-Level/Depth. The problem is that I've been searching for the past couple of days for something simple like using a script call (such as $gameScreen.movePicture) or plugin that can simply adjust the Pictures Z-Level/Depth as I still require access to standard Picture functions like size manipulation, easing functions (eg = easeOutCirc) and even Tsukimi's Gradient Wipe plugin.
Using a layering/parallax based plugin isn't advisable as it would prevent me from being able to use standard picture functions (that and layer/parallax plugins tend to "tile pictures which is something I don't need for this) and TDDP's Bind Pictures To Map plugin, as the name states, binds the picture to the maps position rather than retain the screen position set by the picture.
If a script call can't be done in MV by standard means, can anyone either provide or point me in the direction of a plugin that can do this?
Picture Z-Level help?
● ARCHIVED · READ-ONLY
-
-
you need use this plugin for manage z-index on sprites.
https://github.com/pixijs/pixi-display
you can see here how its work and use.
https://pixijs.io/examples/#/layers/zorder.js -
Thanks for the links but... I'm honestly at a loss because as much as I want to use them, I'm absolutely confused about how to go using them (other than the fact they need to be dropped in the js/libs folder and manually added to the HTML file as they're not standard plugins).
Given that the code they've shown in the Z-Order demo and how MV's scripts call differ from each other, I'm not sure how to go about "preparing" the pictures let alone "showing" them in MV using this method (I can do "simplified" MV calls like showPicture and movePicture but those script calls require "advanced" coding which I'm not well versed in).
Say I want to place a picture named "Earth.png" as Picture #1 with a Z-Order of 3 (just above the "tilemap" layer) on screen at 320x240 with a pixel size of 32x24 (which will stretch to its full size of 320x240 after 10000 seconds) and it's origin is at the "center" of the picture, how would I proceed to do this? -
unfortunately, if you wish to leave the basic context of rmmv it is necessary to study the basis of codings.
Rmmv at the base does not allow the management of the z-order in their software. -
I already know that MV doesn't come with Z-Order management by default. I can display a picture as required but implementing a Z-Order function to the script is what I'm having trouble with.Rmmv at the base does not allow the management of the z-order in their software.
Unless I can get "Earth" to appear "under" the tilemap or player/events, this is going to make a number of planned things excessively difficult.var texture_earth = PIXI.Texture.fromImage('img/pictures/Earth.png');
var Earth = new PIXI.Sprite(texture_earth);
Earth.width = 200; Earth.height = 200;
Earth.position.set(320, 240); Earth.anchor.set(0.5);
SceneManager._scene.addChild(Earth); -
am not remember where rmmv store sprite because i use my own system.
But try look in sub class inside SceneManager._scene
in you console, tape SceneManager._scene
and debug with obj.renderable = false; to find where add you sprite.
If i remember , rmmv dont allow to acces those class by global, so you need search in SceneManager.
ex: SceneManager._scene.SpriteSheet.tilesheet.children[2] -
After fiddling with TDDP's Bind Pictures To Map plugin again, I've found what was causing the oddity with pictures to be misplaced on the map and their odd appearance. It turns out that when I was using the "BindPictureToMap PictureID Layer" plugin command, I had forgotten to check if the map I was using "looping" functions (something that I didn't think to check when I ran in to this issue).
If however you use the "UnbindPictureFromMap PictureID Layer" plugin command, it can change the Z-level of the picture without having it bind the picture to the map itself (even if the maps looping function is set to vertical/horizontal/both or off).
I guess this resolves my issue.
For anyone wants TDDP's Bind Pictures To Map plugin, you can either go to the forum thread or their website for it.
https://forums.rpgmakerweb.com/index.php?threads/bind-pictures-to-map.46776/
http://mvplugins.tordamian.com/plugins/bind-pictures-to-map/
A moderator can lock my thread if they wish (and hopefully if someone sees this thread they find it useful). -
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.