Extended Sprite

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,600
Reaction score
2,360
First Language
French
Primarily Uses
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 Threads

Latest Posts

Latest Profile Posts

40 card deck size, the plugin seems more sluggish.
Village theme I composed for a commission!
Stream will be live shortly with some Haunting Ground! Feel free to drop by!
welp, the stock market went down by 7% because of corona today. Time to buy stocks?

Forum statistics

Threads
94,560
Messages
921,903
Members
124,426
Latest member
KJohn
Top