* I’m sorry in poor English. I need transrators for this document.
It is a plug-in for RPG Maker MV allowing an animation made in SpriteStudio to play.
The plug-in has been developed with the source code of SSPlayerForCCH (HTML5) made by Web Technologies Corp. as a reference.
I’m deeply grateful that Web Technologies Corp. has provided me with the source code.
https://github.com/SpriteStudio/SSPlayerForCCH
This software is released under the MIT License, see LICENSE.md.
https://inababyakko.github.io/SSPlayerForRPGMV/SampleProject/index.html
Above demo project files are included into SampleProject folder.
If you want to show animations without using event command, you may use SsSprite javascript object.
// Example of loading JSON data
var xhr = new XMLHttpRequest();
var url = SSP4MV.animationDir+"EXAMPLE.json";
xhr.open('GET', url);
xhr.overrideMimeType('application/json');
xhr.onload = function (key) {
if (xhr.status < 400) {
// JThe converted JSON file in the above tools, a number of animation data exists.
// Please specify the number of the animation you want to play.
this.jsonData = JSON.parse(xhr.responseText)[0];
}
} .bind(this, key);
xhr.send();
var imageList = new SsImageList(jsonData.images, PluginManager.parameters('SSPlayerForRPGMV')['Animation File Path'], true);
var animation = new SsAnimation(jsonData.animation, imageList);
var sprite = new SsSprite(animation);
addChild
method of Scene class object or any Sprite objects.After adding child, “update” method of “SsSprite” object will be called at every frames.
If you want to disappear this animation, call removeChild
of object that you were added animation object.
I will introduce some plugins application of this plugin, such as system extensions or graphic enhancement, and so on.
I’m sorry for causing you trouble. If you found some probrem, please report to make a topic at Issue of Github, or mention to Twitter@InabaByakko.
If you’re an expert of Github, I’m glad to be sent pull requests to fix issue.
Thank you for your cooperation.