0
var itemshop_idx = {
    idle:1,
    out:2,
    in:3
};

spine_itemShop.state.onComplete = function (trackIndex) {
        switch(trackIndex){
            case itemshop_idx.in://in
                spinePlay_1(spine_itemShop, "popup_item_shop_idle", itemshop_idx.idle, true);
                break;
            case itemshop_idx.out://out
                group_itemShop.visible = false;
                break;
        }
    };

spine_itemShop.setAnimationByName(itemshop_idx.in, "popup_item_shop_in", false);

this code show me "popup_item_shop_in" animation just once. when I play

spine_itemShop.setAnimationByName(itemshop_idx.in, "popup_item_shop_in", false);

again, I don't show "popup_item_shop_in" animation. Just be showed "popup_item_shop_idle" animation directly.

what a problem?

I have searched solution about this problem use a lot of keyword like spine/phaser/animation/pixi.js/orange group/github/time/replay/reset/init/etc...

But I can't find solution.

James Skemp
  • 8,018
  • 9
  • 64
  • 107
ggumak
  • 1
  • 1
  • I'm not familiar with Spine or the plug-in for Phaser, but to just clarify; are you talking about this plug-in? -> https://github.com/orange-games/phaser-spine – BdR Oct 25 '17 at 13:37
  • yes, I use it. Its version is 3.0.9 – ggumak Oct 26 '17 at 02:42

0 Answers0