Quantcast
Channel: Pixi.js Latest Topics
Viewing all articles
Browse latest Browse all 3978

how to make Pixi.Spritesheet compatible with Rpg maker mz

$
0
0

Hi, 

I love a lots the implementation of Spritesheet since it work like atlas and for UI it's wonderful to use or any project who has a lots of Sprites. 

Although the way that MZ or rpg maker implements sprite seem to be a puzzle I can seem to figure out to implement Spritesheet. 

Here's the SPrite API source code 

https://developer.rpgmakerweb.com/rpg-maker-mz/Sprite.js.html#line9 

It seem to be working through Bitmap (which is common with RM) instance instead of a direct texture so figuring out how to implement it 

here's the Bitmap class API source code 

https://developer.rpgmakerweb.com/rpg-maker-mz/Bitmap.js.html#line9

 

My guess was to go and Set the base texture / image to point towards the Spritesheet but I am unsure if it would not work? my guess would be also to create an instance of Spritesheet inside the bitmap class but it seem that would actually cause a memory leak (creating instance duplicates) 

so I am kinda at lost there? 

 

 


Viewing all articles
Browse latest Browse all 3978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>