Extended Sprite

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,949
Reaction score
3,038
First Language
French
Primarily Uses
RMMV
Extended Sprite


Author: Nio Kasgami


Version: 1.00


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


Description:
As 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 Scene or while making plugin.
So here a proposal for help peoples to make plugin without having to deal with swapping childs in the scene for 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!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Profile Posts

Demo for Maze of the Lost MZ released. I would appreciate any and all feedback and constructive criticism. If you like Dungeon Crawlers and JRPG's with a hint of Metroidvania and Shadowgate/Uninvited you might like it. https://forums.rpgmakerweb.com/index.php?threads/maze-of-the-lost-mz-demo-port-from-mv.127971/
Well, here it is, colored. :kaoslp:
Stream will be live shortly with some Darkest Dungeon! Feel free to drop by!

Forum statistics

Threads
103,384
Messages
998,937
Members
134,903
Latest member
MazeGirl1013
Top