Jump to content

Spriter Player for Phaser playback problem

Uncle Stoo

Recommended Posts


We're having a nightmare trying to incorporate Spriter into our project. It seems that the Spriter library doesn't like sprites living in subfolders within the project. 

So, as a test, we placed some frames in the project root folder, and made an animation from them (http://psygnomi.com/tmp/FailTest.zip). Here we get:
Cannot set frameName: 
...with each animation frame displayed. Nothing animates.
However, if I change line 3575 in spriter.js to this:
                this._sprite.frameName = file.name + '.png';
by adding the "+ '.png' " part, it works. (http://psygnomi.com/tmp/WorkingTest.zip)
If we try the modified library with a project containing frames within folders, we get the same problem. I think it stems from Spriter incorporating the folder path into the frame name, but referencing it using only the filename.
Obviously, placing hundreds if not thousands of sprite animation frames in the root folder isn't helpful, and will take many days to re-animate everything.

Any help is greatfully received and appreciated.

Mark & Stoo
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...