Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

Spriter

Pawel Pastuszak edited this page Dec 7, 2018 · 1 revision

Spriter animations are stored in project root/assets/spriter directory. For each animation you must create new folder, mark it as Spriter animation (right click on folder then choose Mark Directory As), put your animation images and the SCML file there. It doesn't matter if your animations images are very large, VisEditor can rescale them. Then go to that folder in editor content browser. You will get message that animation can be imported, press Import button. Set image rescale if needed, press Confirm. Animation will be imported and you will be able to add it to scene. After importing do not replace files in aniamtion directory, if you want to update your animation follow steps below.

To update your animation, navigate to that animation folder, there will be folder with name .vis and inside it there will be a folder called update, place new animation files there, in editor content browser navigate to that folder, press "Update" button.

Also, you have to register support for the Spriter animation in the manager like this:

VisAssetManager manager = new VisAssetManager(batch);
manager.registerSupport(new SpriterSupport());