じ☆ve冰风 发表于 2026-7-26 08:41:38

Extended Sprite

Extended Sprite



Author: Nio Kasgami


Version: 1.00


License: https://github.com/niokasgami/EmojiEngine/blob/master/LICENSE under the Tool Plugin EULA


Description:
SpoilerAs the new MV sprite seems to be really convenient it's lacks a true z value who make the child hard sometime to be resort in Sceneor while making plugin.
So here a proposal for help peoples to make plugin without having to deal with swapping childs in the scenefor fits their needs.




Features:

Z
add a property named z in the sprite class who permit to resort child
                PHP:       
this.sprite = new Sprite();
this.sprite.z = 1;

it's simple like this for working!
it's also possible to resort child of other sprites!

ResortChildren
Method who permit to resort ALL the children in the scene depending their z value!
it's should be call in the scene only like this :
                Code:       
this.resortChildren();


BatchRemoveChildren
Have to remove some children you don't need anymore or when you don't want to be forced to overwrite some method or to manually remove them? This method permit to remove ANY child who have the same Z!
                Code:       
this.batchRemoveChildren(z);



Get the plugin:here


ScreenShot: Not needed.


Term of use : Read the License notice on the top


Conclusion:


   On this I hope you will like this extension!


本贴来自国际rpgmaker官方论坛作者:nio kasgami处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/extended-sprite.74758/
页: [1]
查看完整版本: Extended Sprite