Jump to content

Spine animation in HTML5


TheGeekTechZone
 Share

Recommended Posts

Im having trouble running a animation I did in spine to my HTML5 game, I exported it as .json

 

Im running the following code:

 

 

game.load.atlasJSONHash('sprite', 'assets/skeleton.png', 'assets/skeleton.json');// sprite

this.sprite = game.add.sprite(x, y, 'sprite', 'idle')

 

its giving me the skeleton.png but its not displaying the animation from the .json file 

 

I try to go to the esotericsoftware.com website but its down Can some one show me how to use spine animations in a HTML5 game

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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